135375f98Sopenharmony_ci/* ==========================================
235375f98Sopenharmony_ci    Unity Project - A Test Framework for C
335375f98Sopenharmony_ci    Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
435375f98Sopenharmony_ci    [Released under MIT License. Please refer to license.txt for details]
535375f98Sopenharmony_ci========================================== */
635375f98Sopenharmony_ci
735375f98Sopenharmony_ci#include "unity.h"
835375f98Sopenharmony_ci#define TEST_INSTANCES
935375f98Sopenharmony_ci#include "self_assessment_utils.h"
1035375f98Sopenharmony_ci
1135375f98Sopenharmony_cistatic int SetToOneToFailInTearDown;
1235375f98Sopenharmony_cistatic int SetToOneMeanWeAlreadyCheckedThisGuy;
1335375f98Sopenharmony_ci
1435375f98Sopenharmony_civoid setUp(void)
1535375f98Sopenharmony_ci{
1635375f98Sopenharmony_ci    SetToOneToFailInTearDown = 0;
1735375f98Sopenharmony_ci    SetToOneMeanWeAlreadyCheckedThisGuy = 0;
1835375f98Sopenharmony_ci}
1935375f98Sopenharmony_ci
2035375f98Sopenharmony_civoid tearDown(void)
2135375f98Sopenharmony_ci{
2235375f98Sopenharmony_ci    endPutcharSpy(); /* Stop suppressing test output */
2335375f98Sopenharmony_ci    if (SetToOneToFailInTearDown == 1)
2435375f98Sopenharmony_ci    {
2535375f98Sopenharmony_ci        /* These will be skipped internally if already failed/ignored */
2635375f98Sopenharmony_ci        TEST_FAIL_MESSAGE("<= Failed in tearDown");
2735375f98Sopenharmony_ci        TEST_IGNORE_MESSAGE("<= Ignored in tearDown");
2835375f98Sopenharmony_ci    }
2935375f98Sopenharmony_ci    if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0))
3035375f98Sopenharmony_ci    {
3135375f98Sopenharmony_ci        UnityPrint(": [[[[ Test Should Have Passed But Did Not ]]]]");
3235375f98Sopenharmony_ci        UNITY_OUTPUT_CHAR('\n');
3335375f98Sopenharmony_ci    }
3435375f98Sopenharmony_ci}
3535375f98Sopenharmony_ci
3635375f98Sopenharmony_civoid testInt64ArrayWithinDelta(void)
3735375f98Sopenharmony_ci{
3835375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
3935375f98Sopenharmony_ci    TEST_IGNORE();
4035375f98Sopenharmony_ci#else
4135375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
4235375f98Sopenharmony_ci    UNITY_INT64 actualSmallDelta[] = {12345001, -12344996, 12345005};
4335375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
4435375f98Sopenharmony_ci
4535375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
4635375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
4735375f98Sopenharmony_ci#endif
4835375f98Sopenharmony_ci}
4935375f98Sopenharmony_ci
5035375f98Sopenharmony_civoid testInt64ArrayWithinDeltaAndMessage(void)
5135375f98Sopenharmony_ci{
5235375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
5335375f98Sopenharmony_ci    TEST_IGNORE();
5435375f98Sopenharmony_ci#else
5535375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
5635375f98Sopenharmony_ci    UNITY_INT64 actualSmallDelta[] = {12345001, -12344996, 12345005};
5735375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
5835375f98Sopenharmony_ci
5935375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
6035375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
6135375f98Sopenharmony_ci#endif
6235375f98Sopenharmony_ci}
6335375f98Sopenharmony_ci
6435375f98Sopenharmony_civoid testInt64ArrayNotWithinDelta(void)
6535375f98Sopenharmony_ci{
6635375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
6735375f98Sopenharmony_ci    TEST_IGNORE();
6835375f98Sopenharmony_ci#else
6935375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
7035375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
7135375f98Sopenharmony_ci
7235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
7335375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
7435375f98Sopenharmony_ci    VERIFY_FAILS_END
7535375f98Sopenharmony_ci#endif
7635375f98Sopenharmony_ci}
7735375f98Sopenharmony_ci
7835375f98Sopenharmony_civoid testInt64ArrayNotWithinDeltaAndMessage(void)
7935375f98Sopenharmony_ci{
8035375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
8135375f98Sopenharmony_ci    TEST_IGNORE();
8235375f98Sopenharmony_ci#else
8335375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
8435375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
8535375f98Sopenharmony_ci
8635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
8735375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
8835375f98Sopenharmony_ci    VERIFY_FAILS_END
8935375f98Sopenharmony_ci#endif
9035375f98Sopenharmony_ci}
9135375f98Sopenharmony_ci
9235375f98Sopenharmony_civoid testInt64ArrayWithinDeltaPointless(void)
9335375f98Sopenharmony_ci{
9435375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
9535375f98Sopenharmony_ci    TEST_IGNORE();
9635375f98Sopenharmony_ci#else
9735375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
9835375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
9935375f98Sopenharmony_ci
10035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
10135375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
10235375f98Sopenharmony_ci    VERIFY_FAILS_END
10335375f98Sopenharmony_ci#endif
10435375f98Sopenharmony_ci}
10535375f98Sopenharmony_ci
10635375f98Sopenharmony_civoid testInt64ArrayWithinDeltaPointlessAndMessage(void)
10735375f98Sopenharmony_ci{
10835375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
10935375f98Sopenharmony_ci    TEST_IGNORE();
11035375f98Sopenharmony_ci#else
11135375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
11235375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
11335375f98Sopenharmony_ci
11435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
11535375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
11635375f98Sopenharmony_ci    VERIFY_FAILS_END
11735375f98Sopenharmony_ci#endif
11835375f98Sopenharmony_ci}
11935375f98Sopenharmony_ci
12035375f98Sopenharmony_civoid testInt64ArrayWithinDeltaExpectedNull(void)
12135375f98Sopenharmony_ci{
12235375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
12335375f98Sopenharmony_ci    TEST_IGNORE();
12435375f98Sopenharmony_ci#else
12535375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
12635375f98Sopenharmony_ci
12735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
12835375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
12935375f98Sopenharmony_ci    VERIFY_FAILS_END
13035375f98Sopenharmony_ci#endif
13135375f98Sopenharmony_ci}
13235375f98Sopenharmony_ci
13335375f98Sopenharmony_civoid testInt64ArrayWithinDeltaExpectedNullAndMessage(void)
13435375f98Sopenharmony_ci{
13535375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
13635375f98Sopenharmony_ci    TEST_IGNORE();
13735375f98Sopenharmony_ci#else
13835375f98Sopenharmony_ci    UNITY_INT64 actualBigDelta[] = {12345101, -12344896, 12345055};
13935375f98Sopenharmony_ci
14035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
14135375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
14235375f98Sopenharmony_ci    VERIFY_FAILS_END
14335375f98Sopenharmony_ci#endif
14435375f98Sopenharmony_ci}
14535375f98Sopenharmony_ci
14635375f98Sopenharmony_civoid testInt64ArrayWithinDeltaActualNull(void)
14735375f98Sopenharmony_ci{
14835375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
14935375f98Sopenharmony_ci    TEST_IGNORE();
15035375f98Sopenharmony_ci#else
15135375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
15235375f98Sopenharmony_ci
15335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
15435375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN(110, expected, NULL, 3);
15535375f98Sopenharmony_ci    VERIFY_FAILS_END
15635375f98Sopenharmony_ci#endif
15735375f98Sopenharmony_ci}
15835375f98Sopenharmony_ci
15935375f98Sopenharmony_civoid testInt64ArrayWithinDeltaActualNullAndMessage(void)
16035375f98Sopenharmony_ci{
16135375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
16235375f98Sopenharmony_ci    TEST_IGNORE();
16335375f98Sopenharmony_ci#else
16435375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
16535375f98Sopenharmony_ci
16635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
16735375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
16835375f98Sopenharmony_ci    VERIFY_FAILS_END
16935375f98Sopenharmony_ci#endif
17035375f98Sopenharmony_ci}
17135375f98Sopenharmony_ci
17235375f98Sopenharmony_civoid testInt64ArrayWithinDeltaSamePointer(void)
17335375f98Sopenharmony_ci{
17435375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
17535375f98Sopenharmony_ci    TEST_IGNORE();
17635375f98Sopenharmony_ci#else
17735375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
17835375f98Sopenharmony_ci
17935375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, expected, 3);
18035375f98Sopenharmony_ci#endif
18135375f98Sopenharmony_ci}
18235375f98Sopenharmony_ci
18335375f98Sopenharmony_civoid testInt64ArrayWithinDeltaSamePointerAndMessage(void)
18435375f98Sopenharmony_ci{
18535375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
18635375f98Sopenharmony_ci    TEST_IGNORE();
18735375f98Sopenharmony_ci#else
18835375f98Sopenharmony_ci    UNITY_INT64 expected[] = {12345000, -12344995, 12345005};
18935375f98Sopenharmony_ci
19035375f98Sopenharmony_ci    TEST_ASSERT_INT64_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
19135375f98Sopenharmony_ci#endif
19235375f98Sopenharmony_ci}
19335375f98Sopenharmony_ci
19435375f98Sopenharmony_civoid testIntArrayWithinDelta(void)
19535375f98Sopenharmony_ci{
19635375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
19735375f98Sopenharmony_ci    UNITY_INT actualSmallDelta[] = {5001, -4996, 5005};
19835375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
19935375f98Sopenharmony_ci
20035375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
20135375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
20235375f98Sopenharmony_ci}
20335375f98Sopenharmony_ci
20435375f98Sopenharmony_civoid testIntArrayWithinDeltaAndMessage(void)
20535375f98Sopenharmony_ci{
20635375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
20735375f98Sopenharmony_ci    UNITY_INT actualSmallDelta[] = {5001, -4996, 5005};
20835375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
20935375f98Sopenharmony_ci
21035375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
21135375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
21235375f98Sopenharmony_ci}
21335375f98Sopenharmony_ci
21435375f98Sopenharmony_civoid testIntArrayNotWithinDelta(void)
21535375f98Sopenharmony_ci{
21635375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
21735375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
21835375f98Sopenharmony_ci
21935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
22035375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
22135375f98Sopenharmony_ci    VERIFY_FAILS_END
22235375f98Sopenharmony_ci}
22335375f98Sopenharmony_ci
22435375f98Sopenharmony_civoid testIntArrayNotWithinDeltaAndMessage(void)
22535375f98Sopenharmony_ci{
22635375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
22735375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
22835375f98Sopenharmony_ci
22935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
23035375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
23135375f98Sopenharmony_ci    VERIFY_FAILS_END
23235375f98Sopenharmony_ci}
23335375f98Sopenharmony_ci
23435375f98Sopenharmony_civoid testIntArrayWithinDeltaPointless(void)
23535375f98Sopenharmony_ci{
23635375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
23735375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
23835375f98Sopenharmony_ci
23935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
24035375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
24135375f98Sopenharmony_ci    VERIFY_FAILS_END
24235375f98Sopenharmony_ci}
24335375f98Sopenharmony_ci
24435375f98Sopenharmony_civoid testIntArrayWithinDeltaPointlessAndMessage(void)
24535375f98Sopenharmony_ci{
24635375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
24735375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
24835375f98Sopenharmony_ci
24935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
25035375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
25135375f98Sopenharmony_ci    VERIFY_FAILS_END
25235375f98Sopenharmony_ci}
25335375f98Sopenharmony_ci
25435375f98Sopenharmony_civoid testIntArrayWithinDeltaExpectedNull(void)
25535375f98Sopenharmony_ci{
25635375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
25735375f98Sopenharmony_ci
25835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
25935375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
26035375f98Sopenharmony_ci    VERIFY_FAILS_END
26135375f98Sopenharmony_ci}
26235375f98Sopenharmony_ci
26335375f98Sopenharmony_civoid testIntArrayWithinDeltaExpectedNullAndMessage(void)
26435375f98Sopenharmony_ci{
26535375f98Sopenharmony_ci    UNITY_INT actualBigDelta[] = {5101, -4896, 5055};
26635375f98Sopenharmony_ci
26735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
26835375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
26935375f98Sopenharmony_ci    VERIFY_FAILS_END
27035375f98Sopenharmony_ci}
27135375f98Sopenharmony_ci
27235375f98Sopenharmony_civoid testIntArrayWithinDeltaActualNull(void)
27335375f98Sopenharmony_ci{
27435375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
27535375f98Sopenharmony_ci
27635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
27735375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, NULL, 3);
27835375f98Sopenharmony_ci    VERIFY_FAILS_END
27935375f98Sopenharmony_ci}
28035375f98Sopenharmony_ci
28135375f98Sopenharmony_civoid testIntArrayWithinDeltaActualNullAndMessage(void)
28235375f98Sopenharmony_ci{
28335375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
28435375f98Sopenharmony_ci
28535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
28635375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
28735375f98Sopenharmony_ci    VERIFY_FAILS_END
28835375f98Sopenharmony_ci}
28935375f98Sopenharmony_ci
29035375f98Sopenharmony_civoid testIntArrayWithinDeltaSamePointer(void)
29135375f98Sopenharmony_ci{
29235375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
29335375f98Sopenharmony_ci
29435375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN(110, expected, expected, 3);
29535375f98Sopenharmony_ci}
29635375f98Sopenharmony_ci
29735375f98Sopenharmony_civoid testIntArrayWithinDeltaSamePointerAndMessage(void)
29835375f98Sopenharmony_ci{
29935375f98Sopenharmony_ci    UNITY_INT expected[] = {5000, -4995, 5005};
30035375f98Sopenharmony_ci
30135375f98Sopenharmony_ci    TEST_ASSERT_INT_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
30235375f98Sopenharmony_ci}
30335375f98Sopenharmony_ci
30435375f98Sopenharmony_civoid testInt16ArrayWithinDelta(void)
30535375f98Sopenharmony_ci{
30635375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
30735375f98Sopenharmony_ci    UNITY_INT16 actualSmallDelta[] = {5001, -4996, 5005};
30835375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
30935375f98Sopenharmony_ci
31035375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
31135375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
31235375f98Sopenharmony_ci}
31335375f98Sopenharmony_ci
31435375f98Sopenharmony_civoid testInt16ArrayWithinDeltaAndMessage(void)
31535375f98Sopenharmony_ci{
31635375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
31735375f98Sopenharmony_ci    UNITY_INT16 actualSmallDelta[] = {5001, -4996, 5005};
31835375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
31935375f98Sopenharmony_ci
32035375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
32135375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
32235375f98Sopenharmony_ci}
32335375f98Sopenharmony_ci
32435375f98Sopenharmony_civoid testInt16ArrayNotWithinDelta(void)
32535375f98Sopenharmony_ci{
32635375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
32735375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
32835375f98Sopenharmony_ci
32935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
33035375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
33135375f98Sopenharmony_ci    VERIFY_FAILS_END
33235375f98Sopenharmony_ci}
33335375f98Sopenharmony_ci
33435375f98Sopenharmony_civoid testInt16ArrayNotWithinDeltaAndMessage(void)
33535375f98Sopenharmony_ci{
33635375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
33735375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
33835375f98Sopenharmony_ci
33935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
34035375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
34135375f98Sopenharmony_ci    VERIFY_FAILS_END
34235375f98Sopenharmony_ci}
34335375f98Sopenharmony_ci
34435375f98Sopenharmony_civoid testInt16ArrayWithinDeltaPointless(void)
34535375f98Sopenharmony_ci{
34635375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
34735375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
34835375f98Sopenharmony_ci
34935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
35035375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
35135375f98Sopenharmony_ci    VERIFY_FAILS_END
35235375f98Sopenharmony_ci}
35335375f98Sopenharmony_ci
35435375f98Sopenharmony_civoid testInt16ArrayWithinDeltaPointlessAndMessage(void)
35535375f98Sopenharmony_ci{
35635375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
35735375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
35835375f98Sopenharmony_ci
35935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
36035375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
36135375f98Sopenharmony_ci    VERIFY_FAILS_END
36235375f98Sopenharmony_ci}
36335375f98Sopenharmony_ci
36435375f98Sopenharmony_civoid testInt16ArrayWithinDeltaExpectedNull(void)
36535375f98Sopenharmony_ci{
36635375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
36735375f98Sopenharmony_ci
36835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
36935375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
37035375f98Sopenharmony_ci    VERIFY_FAILS_END
37135375f98Sopenharmony_ci}
37235375f98Sopenharmony_ci
37335375f98Sopenharmony_civoid testInt16ArrayWithinDeltaExpectedNullAndMessage(void)
37435375f98Sopenharmony_ci{
37535375f98Sopenharmony_ci    UNITY_INT16 actualBigDelta[] = {5101, -4896, 5055};
37635375f98Sopenharmony_ci
37735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
37835375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
37935375f98Sopenharmony_ci    VERIFY_FAILS_END
38035375f98Sopenharmony_ci}
38135375f98Sopenharmony_ci
38235375f98Sopenharmony_civoid testInt16ArrayWithinDeltaActualNull(void)
38335375f98Sopenharmony_ci{
38435375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
38535375f98Sopenharmony_ci
38635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
38735375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, NULL, 3);
38835375f98Sopenharmony_ci    VERIFY_FAILS_END
38935375f98Sopenharmony_ci}
39035375f98Sopenharmony_ci
39135375f98Sopenharmony_civoid testInt16ArrayWithinDeltaActualNullAndMessage(void)
39235375f98Sopenharmony_ci{
39335375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
39435375f98Sopenharmony_ci
39535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
39635375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
39735375f98Sopenharmony_ci    VERIFY_FAILS_END
39835375f98Sopenharmony_ci}
39935375f98Sopenharmony_ci
40035375f98Sopenharmony_civoid testInt16ArrayWithinDeltaSamePointer(void)
40135375f98Sopenharmony_ci{
40235375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
40335375f98Sopenharmony_ci
40435375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN(110, expected, expected, 3);
40535375f98Sopenharmony_ci}
40635375f98Sopenharmony_ci
40735375f98Sopenharmony_civoid testInt16ArrayWithinDeltaSamePointerAndMessage(void)
40835375f98Sopenharmony_ci{
40935375f98Sopenharmony_ci    UNITY_INT16 expected[] = {5000, -4995, 5005};
41035375f98Sopenharmony_ci
41135375f98Sopenharmony_ci    TEST_ASSERT_INT16_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
41235375f98Sopenharmony_ci}
41335375f98Sopenharmony_ci
41435375f98Sopenharmony_civoid testInt8ArrayWithinDelta(void)
41535375f98Sopenharmony_ci{
41635375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
41735375f98Sopenharmony_ci    UNITY_INT8 actualSmallDelta[] = {21, -94, 55};
41835375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
41935375f98Sopenharmony_ci
42035375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
42135375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, actualBigDelta, 3);
42235375f98Sopenharmony_ci}
42335375f98Sopenharmony_ci
42435375f98Sopenharmony_civoid testInt8ArrayWithinDeltaAndMessage(void)
42535375f98Sopenharmony_ci{
42635375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
42735375f98Sopenharmony_ci    UNITY_INT8 actualSmallDelta[] = {21, -94, 55};
42835375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
42935375f98Sopenharmony_ci
43035375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
43135375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 3, "Custom Message.");
43235375f98Sopenharmony_ci}
43335375f98Sopenharmony_ci
43435375f98Sopenharmony_civoid testInt8ArrayNotWithinDelta(void)
43535375f98Sopenharmony_ci{
43635375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
43735375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
43835375f98Sopenharmony_ci
43935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
44035375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
44135375f98Sopenharmony_ci    VERIFY_FAILS_END
44235375f98Sopenharmony_ci}
44335375f98Sopenharmony_ci
44435375f98Sopenharmony_civoid testInt8ArrayNotWithinDeltaAndMessage(void)
44535375f98Sopenharmony_ci{
44635375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
44735375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
44835375f98Sopenharmony_ci
44935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
45035375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
45135375f98Sopenharmony_ci    VERIFY_FAILS_END
45235375f98Sopenharmony_ci}
45335375f98Sopenharmony_ci
45435375f98Sopenharmony_civoid testInt8ArrayWithinDeltaPointless(void)
45535375f98Sopenharmony_ci{
45635375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
45735375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
45835375f98Sopenharmony_ci
45935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
46035375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, actualBigDelta, 0);
46135375f98Sopenharmony_ci    VERIFY_FAILS_END
46235375f98Sopenharmony_ci}
46335375f98Sopenharmony_ci
46435375f98Sopenharmony_civoid testInt8ArrayWithinDeltaPointlessAndMessage(void)
46535375f98Sopenharmony_ci{
46635375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
46735375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
46835375f98Sopenharmony_ci
46935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
47035375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 0, "Custom Message.");
47135375f98Sopenharmony_ci    VERIFY_FAILS_END
47235375f98Sopenharmony_ci}
47335375f98Sopenharmony_ci
47435375f98Sopenharmony_civoid testInt8ArrayWithinDeltaExpectedNull(void)
47535375f98Sopenharmony_ci{
47635375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
47735375f98Sopenharmony_ci
47835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
47935375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN(11, NULL, actualBigDelta, 3);
48035375f98Sopenharmony_ci    VERIFY_FAILS_END
48135375f98Sopenharmony_ci}
48235375f98Sopenharmony_ci
48335375f98Sopenharmony_civoid testInt8ArrayWithinDeltaExpectedNullAndMessage(void)
48435375f98Sopenharmony_ci{
48535375f98Sopenharmony_ci    UNITY_INT8 actualBigDelta[] = {11, -86, 45};
48635375f98Sopenharmony_ci
48735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
48835375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, NULL, actualBigDelta, 3, "Custom Message.");
48935375f98Sopenharmony_ci    VERIFY_FAILS_END
49035375f98Sopenharmony_ci}
49135375f98Sopenharmony_ci
49235375f98Sopenharmony_civoid testInt8ArrayWithinDeltaActualNull(void)
49335375f98Sopenharmony_ci{
49435375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
49535375f98Sopenharmony_ci
49635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
49735375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, NULL, 3);
49835375f98Sopenharmony_ci    VERIFY_FAILS_END
49935375f98Sopenharmony_ci}
50035375f98Sopenharmony_ci
50135375f98Sopenharmony_civoid testInt8ArrayWithinDeltaActualNullAndMessage(void)
50235375f98Sopenharmony_ci{
50335375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
50435375f98Sopenharmony_ci
50535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
50635375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, NULL, 3, "Custom Message.");
50735375f98Sopenharmony_ci    VERIFY_FAILS_END
50835375f98Sopenharmony_ci}
50935375f98Sopenharmony_ci
51035375f98Sopenharmony_civoid testInt8ArrayWithinDeltaSamePointer(void)
51135375f98Sopenharmony_ci{
51235375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
51335375f98Sopenharmony_ci
51435375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN(11, expected, expected, 3);
51535375f98Sopenharmony_ci}
51635375f98Sopenharmony_ci
51735375f98Sopenharmony_civoid testInt8ArrayWithinDeltaSamePointerAndMessage(void)
51835375f98Sopenharmony_ci{
51935375f98Sopenharmony_ci    UNITY_INT8 expected[] = {20, -95, 55};
52035375f98Sopenharmony_ci
52135375f98Sopenharmony_ci    TEST_ASSERT_INT8_ARRAY_WITHIN_MESSAGE(11, expected, expected, 3, "Custom Message.");
52235375f98Sopenharmony_ci}
52335375f98Sopenharmony_ci
52435375f98Sopenharmony_civoid testCHARArrayWithinDelta(void)
52535375f98Sopenharmony_ci{
52635375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
52735375f98Sopenharmony_ci    char actualSmallDelta[] = {21, -94, 55};
52835375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
52935375f98Sopenharmony_ci
53035375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
53135375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, actualBigDelta, 3);
53235375f98Sopenharmony_ci}
53335375f98Sopenharmony_ci
53435375f98Sopenharmony_civoid testCHARArrayWithinDeltaAndMessage(void)
53535375f98Sopenharmony_ci{
53635375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
53735375f98Sopenharmony_ci    char actualSmallDelta[] = {21, -94, 55};
53835375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
53935375f98Sopenharmony_ci
54035375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
54135375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 3, "Custom Message.");
54235375f98Sopenharmony_ci}
54335375f98Sopenharmony_ci
54435375f98Sopenharmony_civoid testCHARArrayNotWithinDelta(void)
54535375f98Sopenharmony_ci{
54635375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
54735375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
54835375f98Sopenharmony_ci
54935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
55035375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
55135375f98Sopenharmony_ci    VERIFY_FAILS_END
55235375f98Sopenharmony_ci}
55335375f98Sopenharmony_ci
55435375f98Sopenharmony_civoid testCHARArrayNotWithinDeltaAndMessage(void)
55535375f98Sopenharmony_ci{
55635375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
55735375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
55835375f98Sopenharmony_ci
55935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
56035375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
56135375f98Sopenharmony_ci    VERIFY_FAILS_END
56235375f98Sopenharmony_ci}
56335375f98Sopenharmony_ci
56435375f98Sopenharmony_civoid testCHARArrayWithinDeltaPointless(void)
56535375f98Sopenharmony_ci{
56635375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
56735375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
56835375f98Sopenharmony_ci
56935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
57035375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, actualBigDelta, 0);
57135375f98Sopenharmony_ci    VERIFY_FAILS_END
57235375f98Sopenharmony_ci}
57335375f98Sopenharmony_ci
57435375f98Sopenharmony_civoid testCHARArrayWithinDeltaPointlessAndMessage(void)
57535375f98Sopenharmony_ci{
57635375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
57735375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
57835375f98Sopenharmony_ci
57935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
58035375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 0, "Custom Message.");
58135375f98Sopenharmony_ci    VERIFY_FAILS_END
58235375f98Sopenharmony_ci}
58335375f98Sopenharmony_ci
58435375f98Sopenharmony_civoid testCHARArrayWithinDeltaExpectedNull(void)
58535375f98Sopenharmony_ci{
58635375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
58735375f98Sopenharmony_ci
58835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
58935375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN(11, NULL, actualBigDelta, 3);
59035375f98Sopenharmony_ci    VERIFY_FAILS_END
59135375f98Sopenharmony_ci}
59235375f98Sopenharmony_ci
59335375f98Sopenharmony_civoid testCHARArrayWithinDeltaExpectedNullAndMessage(void)
59435375f98Sopenharmony_ci{
59535375f98Sopenharmony_ci    char actualBigDelta[] = {11, -86, 45};
59635375f98Sopenharmony_ci
59735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
59835375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, NULL, actualBigDelta, 3, "Custom Message.");
59935375f98Sopenharmony_ci    VERIFY_FAILS_END
60035375f98Sopenharmony_ci}
60135375f98Sopenharmony_ci
60235375f98Sopenharmony_civoid testCHARArrayWithinDeltaActualNull(void)
60335375f98Sopenharmony_ci{
60435375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
60535375f98Sopenharmony_ci
60635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
60735375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, NULL, 3);
60835375f98Sopenharmony_ci    VERIFY_FAILS_END
60935375f98Sopenharmony_ci}
61035375f98Sopenharmony_ci
61135375f98Sopenharmony_civoid testCHARArrayWithinDeltaActualNullAndMessage(void)
61235375f98Sopenharmony_ci{
61335375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
61435375f98Sopenharmony_ci
61535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
61635375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, NULL, 3, "Custom Message.");
61735375f98Sopenharmony_ci    VERIFY_FAILS_END
61835375f98Sopenharmony_ci}
61935375f98Sopenharmony_ci
62035375f98Sopenharmony_civoid testCHARArrayWithinDeltaSamePointer(void)
62135375f98Sopenharmony_ci{
62235375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
62335375f98Sopenharmony_ci
62435375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN(11, expected, expected, 3);
62535375f98Sopenharmony_ci}
62635375f98Sopenharmony_ci
62735375f98Sopenharmony_civoid testCHARArrayWithinDeltaSamePointerAndMessage(void)
62835375f98Sopenharmony_ci{
62935375f98Sopenharmony_ci    char expected[] = {20, -95, 55};
63035375f98Sopenharmony_ci
63135375f98Sopenharmony_ci    TEST_ASSERT_CHAR_ARRAY_WITHIN_MESSAGE(11, expected, expected, 3, "Custom Message.");
63235375f98Sopenharmony_ci}
63335375f98Sopenharmony_ci
63435375f98Sopenharmony_civoid testUInt64ArrayWithinDelta(void)
63535375f98Sopenharmony_ci{
63635375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
63735375f98Sopenharmony_ci    TEST_IGNORE();
63835375f98Sopenharmony_ci#else
63935375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
64035375f98Sopenharmony_ci    UNITY_UINT64 actualSmallDelta[] = {12345001, 12344996, 12345005};
64135375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
64235375f98Sopenharmony_ci
64335375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
64435375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
64535375f98Sopenharmony_ci#endif
64635375f98Sopenharmony_ci}
64735375f98Sopenharmony_ci
64835375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaAndMessage(void)
64935375f98Sopenharmony_ci{
65035375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
65135375f98Sopenharmony_ci    TEST_IGNORE();
65235375f98Sopenharmony_ci#else
65335375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
65435375f98Sopenharmony_ci    UNITY_UINT64 actualSmallDelta[] = {12345001, 12344996, 12345005};
65535375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
65635375f98Sopenharmony_ci
65735375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
65835375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
65935375f98Sopenharmony_ci#endif
66035375f98Sopenharmony_ci}
66135375f98Sopenharmony_ci
66235375f98Sopenharmony_civoid testUInt64ArrayNotWithinDelta(void)
66335375f98Sopenharmony_ci{
66435375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
66535375f98Sopenharmony_ci    TEST_IGNORE();
66635375f98Sopenharmony_ci#else
66735375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
66835375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
66935375f98Sopenharmony_ci
67035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
67135375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
67235375f98Sopenharmony_ci    VERIFY_FAILS_END
67335375f98Sopenharmony_ci#endif
67435375f98Sopenharmony_ci}
67535375f98Sopenharmony_ci
67635375f98Sopenharmony_civoid testUInt64ArrayNotWithinDeltaAndMessage(void)
67735375f98Sopenharmony_ci{
67835375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
67935375f98Sopenharmony_ci    TEST_IGNORE();
68035375f98Sopenharmony_ci#else
68135375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
68235375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
68335375f98Sopenharmony_ci
68435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
68535375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
68635375f98Sopenharmony_ci    VERIFY_FAILS_END
68735375f98Sopenharmony_ci#endif
68835375f98Sopenharmony_ci}
68935375f98Sopenharmony_ci
69035375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaPointless(void)
69135375f98Sopenharmony_ci{
69235375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
69335375f98Sopenharmony_ci    TEST_IGNORE();
69435375f98Sopenharmony_ci#else
69535375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
69635375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
69735375f98Sopenharmony_ci
69835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
69935375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
70035375f98Sopenharmony_ci    VERIFY_FAILS_END
70135375f98Sopenharmony_ci#endif
70235375f98Sopenharmony_ci}
70335375f98Sopenharmony_ci
70435375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaPointlessAndMessage(void)
70535375f98Sopenharmony_ci{
70635375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
70735375f98Sopenharmony_ci    TEST_IGNORE();
70835375f98Sopenharmony_ci#else
70935375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
71035375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
71135375f98Sopenharmony_ci
71235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
71335375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
71435375f98Sopenharmony_ci    VERIFY_FAILS_END
71535375f98Sopenharmony_ci#endif
71635375f98Sopenharmony_ci}
71735375f98Sopenharmony_ci
71835375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaExpectedNull(void)
71935375f98Sopenharmony_ci{
72035375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
72135375f98Sopenharmony_ci    TEST_IGNORE();
72235375f98Sopenharmony_ci#else
72335375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
72435375f98Sopenharmony_ci
72535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
72635375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
72735375f98Sopenharmony_ci    VERIFY_FAILS_END
72835375f98Sopenharmony_ci#endif
72935375f98Sopenharmony_ci}
73035375f98Sopenharmony_ci
73135375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaExpectedNullAndMessage(void)
73235375f98Sopenharmony_ci{
73335375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
73435375f98Sopenharmony_ci    TEST_IGNORE();
73535375f98Sopenharmony_ci#else
73635375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {12345101, 12344896, 12345055};
73735375f98Sopenharmony_ci
73835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
73935375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
74035375f98Sopenharmony_ci    VERIFY_FAILS_END
74135375f98Sopenharmony_ci#endif
74235375f98Sopenharmony_ci}
74335375f98Sopenharmony_ci
74435375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaActualNull(void)
74535375f98Sopenharmony_ci{
74635375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
74735375f98Sopenharmony_ci    TEST_IGNORE();
74835375f98Sopenharmony_ci#else
74935375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
75035375f98Sopenharmony_ci
75135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
75235375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, NULL, 3);
75335375f98Sopenharmony_ci    VERIFY_FAILS_END
75435375f98Sopenharmony_ci#endif
75535375f98Sopenharmony_ci}
75635375f98Sopenharmony_ci
75735375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaActualNullAndMessage(void)
75835375f98Sopenharmony_ci{
75935375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
76035375f98Sopenharmony_ci    TEST_IGNORE();
76135375f98Sopenharmony_ci#else
76235375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
76335375f98Sopenharmony_ci
76435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
76535375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
76635375f98Sopenharmony_ci    VERIFY_FAILS_END
76735375f98Sopenharmony_ci#endif
76835375f98Sopenharmony_ci}
76935375f98Sopenharmony_ci
77035375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaSamePointer(void)
77135375f98Sopenharmony_ci{
77235375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
77335375f98Sopenharmony_ci    TEST_IGNORE();
77435375f98Sopenharmony_ci#else
77535375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
77635375f98Sopenharmony_ci
77735375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN(110, expected, expected, 3);
77835375f98Sopenharmony_ci#endif
77935375f98Sopenharmony_ci}
78035375f98Sopenharmony_ci
78135375f98Sopenharmony_civoid testUInt64ArrayWithinDeltaSamePointerAndMessage(void)
78235375f98Sopenharmony_ci{
78335375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
78435375f98Sopenharmony_ci    TEST_IGNORE();
78535375f98Sopenharmony_ci#else
78635375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {12345000, 12344995, 12345005};
78735375f98Sopenharmony_ci
78835375f98Sopenharmony_ci    TEST_ASSERT_UINT64_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
78935375f98Sopenharmony_ci#endif
79035375f98Sopenharmony_ci}
79135375f98Sopenharmony_ci
79235375f98Sopenharmony_civoid testUIntArrayWithinDelta(void)
79335375f98Sopenharmony_ci{
79435375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
79535375f98Sopenharmony_ci    UNITY_UINT actualSmallDelta[] = {125001, 124996, 125005};
79635375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
79735375f98Sopenharmony_ci
79835375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
79935375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
80035375f98Sopenharmony_ci}
80135375f98Sopenharmony_ci
80235375f98Sopenharmony_civoid testUIntArrayWithinDeltaAndMessage(void)
80335375f98Sopenharmony_ci{
80435375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
80535375f98Sopenharmony_ci    UNITY_UINT actualSmallDelta[] = {125001, 124996, 125005};
80635375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
80735375f98Sopenharmony_ci
80835375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
80935375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
81035375f98Sopenharmony_ci}
81135375f98Sopenharmony_ci
81235375f98Sopenharmony_civoid testUIntArrayNotWithinDelta(void)
81335375f98Sopenharmony_ci{
81435375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
81535375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
81635375f98Sopenharmony_ci
81735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
81835375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
81935375f98Sopenharmony_ci    VERIFY_FAILS_END
82035375f98Sopenharmony_ci}
82135375f98Sopenharmony_ci
82235375f98Sopenharmony_civoid testUIntArrayNotWithinDeltaAndMessage(void)
82335375f98Sopenharmony_ci{
82435375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
82535375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
82635375f98Sopenharmony_ci
82735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
82835375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
82935375f98Sopenharmony_ci    VERIFY_FAILS_END
83035375f98Sopenharmony_ci}
83135375f98Sopenharmony_ci
83235375f98Sopenharmony_civoid testUIntArrayWithinDeltaPointless(void)
83335375f98Sopenharmony_ci{
83435375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
83535375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
83635375f98Sopenharmony_ci
83735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
83835375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
83935375f98Sopenharmony_ci    VERIFY_FAILS_END
84035375f98Sopenharmony_ci}
84135375f98Sopenharmony_ci
84235375f98Sopenharmony_civoid testUIntArrayWithinDeltaPointlessAndMessage(void)
84335375f98Sopenharmony_ci{
84435375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
84535375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
84635375f98Sopenharmony_ci
84735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
84835375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
84935375f98Sopenharmony_ci    VERIFY_FAILS_END
85035375f98Sopenharmony_ci}
85135375f98Sopenharmony_ci
85235375f98Sopenharmony_civoid testUIntArrayWithinDeltaExpectedNull(void)
85335375f98Sopenharmony_ci{
85435375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
85535375f98Sopenharmony_ci
85635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
85735375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
85835375f98Sopenharmony_ci    VERIFY_FAILS_END
85935375f98Sopenharmony_ci}
86035375f98Sopenharmony_ci
86135375f98Sopenharmony_civoid testUIntArrayWithinDeltaExpectedNullAndMessage(void)
86235375f98Sopenharmony_ci{
86335375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {125101, 124896, 125055};
86435375f98Sopenharmony_ci
86535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
86635375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
86735375f98Sopenharmony_ci    VERIFY_FAILS_END
86835375f98Sopenharmony_ci}
86935375f98Sopenharmony_ci
87035375f98Sopenharmony_civoid testUIntArrayWithinDeltaActualNull(void)
87135375f98Sopenharmony_ci{
87235375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
87335375f98Sopenharmony_ci
87435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
87535375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, NULL, 3);
87635375f98Sopenharmony_ci    VERIFY_FAILS_END
87735375f98Sopenharmony_ci}
87835375f98Sopenharmony_ci
87935375f98Sopenharmony_civoid testUIntArrayWithinDeltaActualNullAndMessage(void)
88035375f98Sopenharmony_ci{
88135375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
88235375f98Sopenharmony_ci
88335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
88435375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
88535375f98Sopenharmony_ci    VERIFY_FAILS_END
88635375f98Sopenharmony_ci}
88735375f98Sopenharmony_ci
88835375f98Sopenharmony_civoid testUIntArrayWithinDeltaSamePointer(void)
88935375f98Sopenharmony_ci{
89035375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
89135375f98Sopenharmony_ci
89235375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN(110, expected, expected, 3);
89335375f98Sopenharmony_ci}
89435375f98Sopenharmony_ci
89535375f98Sopenharmony_civoid testUIntArrayWithinDeltaSamePointerAndMessage(void)
89635375f98Sopenharmony_ci{
89735375f98Sopenharmony_ci    UNITY_UINT expected[] = {125000, 124995, 125005};
89835375f98Sopenharmony_ci
89935375f98Sopenharmony_ci    TEST_ASSERT_UINT_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
90035375f98Sopenharmony_ci}
90135375f98Sopenharmony_ci
90235375f98Sopenharmony_civoid testUInt16ArrayWithinDelta(void)
90335375f98Sopenharmony_ci{
90435375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
90535375f98Sopenharmony_ci    UNITY_UINT16 actualSmallDelta[] = {5001, 4996, 5005};
90635375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
90735375f98Sopenharmony_ci
90835375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
90935375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
91035375f98Sopenharmony_ci}
91135375f98Sopenharmony_ci
91235375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaAndMessage(void)
91335375f98Sopenharmony_ci{
91435375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
91535375f98Sopenharmony_ci    UNITY_UINT16 actualSmallDelta[] = {5001, 4996, 5005};
91635375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
91735375f98Sopenharmony_ci
91835375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
91935375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
92035375f98Sopenharmony_ci}
92135375f98Sopenharmony_ci
92235375f98Sopenharmony_civoid testUInt16ArrayNotWithinDelta(void)
92335375f98Sopenharmony_ci{
92435375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
92535375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
92635375f98Sopenharmony_ci
92735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
92835375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
92935375f98Sopenharmony_ci    VERIFY_FAILS_END
93035375f98Sopenharmony_ci}
93135375f98Sopenharmony_ci
93235375f98Sopenharmony_civoid testUInt16ArrayNotWithinDeltaAndMessage(void)
93335375f98Sopenharmony_ci{
93435375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
93535375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
93635375f98Sopenharmony_ci
93735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
93835375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
93935375f98Sopenharmony_ci    VERIFY_FAILS_END
94035375f98Sopenharmony_ci}
94135375f98Sopenharmony_ci
94235375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaPointless(void)
94335375f98Sopenharmony_ci{
94435375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
94535375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
94635375f98Sopenharmony_ci
94735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
94835375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
94935375f98Sopenharmony_ci    VERIFY_FAILS_END
95035375f98Sopenharmony_ci}
95135375f98Sopenharmony_ci
95235375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaPointlessAndMessage(void)
95335375f98Sopenharmony_ci{
95435375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
95535375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
95635375f98Sopenharmony_ci
95735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
95835375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
95935375f98Sopenharmony_ci    VERIFY_FAILS_END
96035375f98Sopenharmony_ci}
96135375f98Sopenharmony_ci
96235375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaExpectedNull(void)
96335375f98Sopenharmony_ci{
96435375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
96535375f98Sopenharmony_ci
96635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
96735375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
96835375f98Sopenharmony_ci    VERIFY_FAILS_END
96935375f98Sopenharmony_ci}
97035375f98Sopenharmony_ci
97135375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaExpectedNullAndMessage(void)
97235375f98Sopenharmony_ci{
97335375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {5101, 4896, 5055};
97435375f98Sopenharmony_ci
97535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
97635375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
97735375f98Sopenharmony_ci    VERIFY_FAILS_END
97835375f98Sopenharmony_ci}
97935375f98Sopenharmony_ci
98035375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaActualNull(void)
98135375f98Sopenharmony_ci{
98235375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
98335375f98Sopenharmony_ci
98435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
98535375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, NULL, 3);
98635375f98Sopenharmony_ci    VERIFY_FAILS_END
98735375f98Sopenharmony_ci}
98835375f98Sopenharmony_ci
98935375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaActualNullAndMessage(void)
99035375f98Sopenharmony_ci{
99135375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
99235375f98Sopenharmony_ci
99335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
99435375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
99535375f98Sopenharmony_ci    VERIFY_FAILS_END
99635375f98Sopenharmony_ci}
99735375f98Sopenharmony_ci
99835375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaSamePointer(void)
99935375f98Sopenharmony_ci{
100035375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
100135375f98Sopenharmony_ci
100235375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN(110, expected, expected, 3);
100335375f98Sopenharmony_ci}
100435375f98Sopenharmony_ci
100535375f98Sopenharmony_civoid testUInt16ArrayWithinDeltaSamePointerAndMessage(void)
100635375f98Sopenharmony_ci{
100735375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {5000, 4995, 5005};
100835375f98Sopenharmony_ci
100935375f98Sopenharmony_ci    TEST_ASSERT_UINT16_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
101035375f98Sopenharmony_ci}
101135375f98Sopenharmony_ci
101235375f98Sopenharmony_civoid testUInt8ArrayWithinDelta(void)
101335375f98Sopenharmony_ci{
101435375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
101535375f98Sopenharmony_ci    UNITY_UINT8 actualSmallDelta[] = {21, 94, 55};
101635375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
101735375f98Sopenharmony_ci
101835375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
101935375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, actualBigDelta, 3);
102035375f98Sopenharmony_ci}
102135375f98Sopenharmony_ci
102235375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaAndMessage(void)
102335375f98Sopenharmony_ci{
102435375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
102535375f98Sopenharmony_ci    UNITY_UINT8 actualSmallDelta[] = {21, 94, 55};
102635375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
102735375f98Sopenharmony_ci
102835375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
102935375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 3, "Custom Message.");
103035375f98Sopenharmony_ci}
103135375f98Sopenharmony_ci
103235375f98Sopenharmony_civoid testUInt8ArrayNotWithinDelta(void)
103335375f98Sopenharmony_ci{
103435375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
103535375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
103635375f98Sopenharmony_ci
103735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
103835375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
103935375f98Sopenharmony_ci    VERIFY_FAILS_END
104035375f98Sopenharmony_ci}
104135375f98Sopenharmony_ci
104235375f98Sopenharmony_civoid testUInt8ArrayNotWithinDeltaAndMessage(void)
104335375f98Sopenharmony_ci{
104435375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
104535375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
104635375f98Sopenharmony_ci
104735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
104835375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
104935375f98Sopenharmony_ci    VERIFY_FAILS_END
105035375f98Sopenharmony_ci}
105135375f98Sopenharmony_ci
105235375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaPointless(void)
105335375f98Sopenharmony_ci{
105435375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
105535375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
105635375f98Sopenharmony_ci
105735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
105835375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, actualBigDelta, 0);
105935375f98Sopenharmony_ci    VERIFY_FAILS_END
106035375f98Sopenharmony_ci}
106135375f98Sopenharmony_ci
106235375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaPointlessAndMessage(void)
106335375f98Sopenharmony_ci{
106435375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
106535375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
106635375f98Sopenharmony_ci
106735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
106835375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, actualBigDelta, 0, "Custom Message.");
106935375f98Sopenharmony_ci    VERIFY_FAILS_END
107035375f98Sopenharmony_ci}
107135375f98Sopenharmony_ci
107235375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaExpectedNull(void)
107335375f98Sopenharmony_ci{
107435375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
107535375f98Sopenharmony_ci
107635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
107735375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN(11, NULL, actualBigDelta, 3);
107835375f98Sopenharmony_ci    VERIFY_FAILS_END
107935375f98Sopenharmony_ci}
108035375f98Sopenharmony_ci
108135375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaExpectedNullAndMessage(void)
108235375f98Sopenharmony_ci{
108335375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {11, 86, 45};
108435375f98Sopenharmony_ci
108535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
108635375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, NULL, actualBigDelta, 3, "Custom Message.");
108735375f98Sopenharmony_ci    VERIFY_FAILS_END
108835375f98Sopenharmony_ci}
108935375f98Sopenharmony_ci
109035375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaActualNull(void)
109135375f98Sopenharmony_ci{
109235375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
109335375f98Sopenharmony_ci
109435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
109535375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, NULL, 3);
109635375f98Sopenharmony_ci    VERIFY_FAILS_END
109735375f98Sopenharmony_ci}
109835375f98Sopenharmony_ci
109935375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaActualNullAndMessage(void)
110035375f98Sopenharmony_ci{
110135375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
110235375f98Sopenharmony_ci
110335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
110435375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, NULL, 3, "Custom Message.");
110535375f98Sopenharmony_ci    VERIFY_FAILS_END
110635375f98Sopenharmony_ci}
110735375f98Sopenharmony_ci
110835375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaSamePointer(void)
110935375f98Sopenharmony_ci{
111035375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
111135375f98Sopenharmony_ci
111235375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN(11, expected, expected, 3);
111335375f98Sopenharmony_ci}
111435375f98Sopenharmony_ci
111535375f98Sopenharmony_civoid testUInt8ArrayWithinDeltaSamePointerAndMessage(void)
111635375f98Sopenharmony_ci{
111735375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {20, 95, 55};
111835375f98Sopenharmony_ci
111935375f98Sopenharmony_ci    TEST_ASSERT_UINT8_ARRAY_WITHIN_MESSAGE(11, expected, expected, 3, "Custom Message.");
112035375f98Sopenharmony_ci}
112135375f98Sopenharmony_ci
112235375f98Sopenharmony_civoid testHEX64ArrayWithinDelta(void)
112335375f98Sopenharmony_ci{
112435375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
112535375f98Sopenharmony_ci    TEST_IGNORE();
112635375f98Sopenharmony_ci#else
112735375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
112835375f98Sopenharmony_ci    UNITY_UINT64 actualSmallDelta[] = {0xABCD123500000000, 0xABCD112100000000, 0xABCD127700000000};
112935375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
113035375f98Sopenharmony_ci
113135375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(0x100000000, expected, actualSmallDelta, 3);
113235375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, actualBigDelta, 3);
113335375f98Sopenharmony_ci#endif
113435375f98Sopenharmony_ci}
113535375f98Sopenharmony_ci
113635375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaShouldNotHaveSignIssues(void)
113735375f98Sopenharmony_ci{
113835375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
113935375f98Sopenharmony_ci    TEST_IGNORE();
114035375f98Sopenharmony_ci#else
114135375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0x7FFFFFFFFFFFFFFF, 0x8000000000000000};
114235375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0x8000000000000000, 0x7FFFFFFFFFFFFFFF};
114335375f98Sopenharmony_ci
114435375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(1, expected, actualBigDelta, 2);
114535375f98Sopenharmony_ci#endif
114635375f98Sopenharmony_ci}
114735375f98Sopenharmony_ci
114835375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaAndMessage(void)
114935375f98Sopenharmony_ci{
115035375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
115135375f98Sopenharmony_ci    TEST_IGNORE();
115235375f98Sopenharmony_ci#else
115335375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
115435375f98Sopenharmony_ci    UNITY_UINT64 actualSmallDelta[] = {0xABCD123500000000, 0xABCD112100000000, 0xABCD127700000000};
115535375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
115635375f98Sopenharmony_ci
115735375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x100000000, expected, actualSmallDelta, 3, "Custom Message.");
115835375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, actualBigDelta, 3, "Custom Message.");
115935375f98Sopenharmony_ci#endif
116035375f98Sopenharmony_ci}
116135375f98Sopenharmony_ci
116235375f98Sopenharmony_civoid testHEX64ArrayNotWithinDelta(void)
116335375f98Sopenharmony_ci{
116435375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
116535375f98Sopenharmony_ci    TEST_IGNORE();
116635375f98Sopenharmony_ci#else
116735375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
116835375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
116935375f98Sopenharmony_ci
117035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
117135375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(0x100000000, expected, actualBigDelta, 3);
117235375f98Sopenharmony_ci    VERIFY_FAILS_END
117335375f98Sopenharmony_ci#endif
117435375f98Sopenharmony_ci}
117535375f98Sopenharmony_ci
117635375f98Sopenharmony_civoid testHEX64ArrayNotWithinDeltaAndMessage(void)
117735375f98Sopenharmony_ci{
117835375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
117935375f98Sopenharmony_ci    TEST_IGNORE();
118035375f98Sopenharmony_ci#else
118135375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
118235375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
118335375f98Sopenharmony_ci
118435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
118535375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x100000000, expected, actualBigDelta, 3, "Custom Message.");
118635375f98Sopenharmony_ci    VERIFY_FAILS_END
118735375f98Sopenharmony_ci#endif
118835375f98Sopenharmony_ci}
118935375f98Sopenharmony_ci
119035375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaPointless(void)
119135375f98Sopenharmony_ci{
119235375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
119335375f98Sopenharmony_ci    TEST_IGNORE();
119435375f98Sopenharmony_ci#else
119535375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
119635375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
119735375f98Sopenharmony_ci
119835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
119935375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, actualBigDelta, 0);
120035375f98Sopenharmony_ci    VERIFY_FAILS_END
120135375f98Sopenharmony_ci#endif
120235375f98Sopenharmony_ci}
120335375f98Sopenharmony_ci
120435375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaPointlessAndMessage(void)
120535375f98Sopenharmony_ci{
120635375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
120735375f98Sopenharmony_ci    TEST_IGNORE();
120835375f98Sopenharmony_ci#else
120935375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
121035375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
121135375f98Sopenharmony_ci
121235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
121335375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, actualBigDelta, 0, "Custom Message.");
121435375f98Sopenharmony_ci    VERIFY_FAILS_END
121535375f98Sopenharmony_ci#endif
121635375f98Sopenharmony_ci}
121735375f98Sopenharmony_ci
121835375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaExpectedNull(void)
121935375f98Sopenharmony_ci{
122035375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
122135375f98Sopenharmony_ci    TEST_IGNORE();
122235375f98Sopenharmony_ci#else
122335375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
122435375f98Sopenharmony_ci
122535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
122635375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, NULL, actualBigDelta, 3);
122735375f98Sopenharmony_ci    VERIFY_FAILS_END
122835375f98Sopenharmony_ci#endif
122935375f98Sopenharmony_ci}
123035375f98Sopenharmony_ci
123135375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaExpectedNullAndMessage(void)
123235375f98Sopenharmony_ci{
123335375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
123435375f98Sopenharmony_ci    TEST_IGNORE();
123535375f98Sopenharmony_ci#else
123635375f98Sopenharmony_ci    UNITY_UINT64 actualBigDelta[] = {0xABCD126700000000, 0xABCD118800000000, 0xABCD12AC00000000};
123735375f98Sopenharmony_ci
123835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
123935375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, NULL, actualBigDelta, 3, "Custom Message.");
124035375f98Sopenharmony_ci    VERIFY_FAILS_END
124135375f98Sopenharmony_ci#endif
124235375f98Sopenharmony_ci}
124335375f98Sopenharmony_ci
124435375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaActualNull(void)
124535375f98Sopenharmony_ci{
124635375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
124735375f98Sopenharmony_ci    TEST_IGNORE();
124835375f98Sopenharmony_ci#else
124935375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
125035375f98Sopenharmony_ci
125135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
125235375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, NULL, 3);
125335375f98Sopenharmony_ci    VERIFY_FAILS_END
125435375f98Sopenharmony_ci#endif
125535375f98Sopenharmony_ci}
125635375f98Sopenharmony_ci
125735375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaActualNullAndMessage(void)
125835375f98Sopenharmony_ci{
125935375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
126035375f98Sopenharmony_ci    TEST_IGNORE();
126135375f98Sopenharmony_ci#else
126235375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
126335375f98Sopenharmony_ci
126435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
126535375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, NULL, 3, "Custom Message.");
126635375f98Sopenharmony_ci    VERIFY_FAILS_END
126735375f98Sopenharmony_ci#endif
126835375f98Sopenharmony_ci}
126935375f98Sopenharmony_ci
127035375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaSamePointer(void)
127135375f98Sopenharmony_ci{
127235375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
127335375f98Sopenharmony_ci    TEST_IGNORE();
127435375f98Sopenharmony_ci#else
127535375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
127635375f98Sopenharmony_ci
127735375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN(0x6E00000000, expected, expected, 3);
127835375f98Sopenharmony_ci#endif
127935375f98Sopenharmony_ci}
128035375f98Sopenharmony_ci
128135375f98Sopenharmony_civoid testHEX64ArrayWithinDeltaSamePointerAndMessage(void)
128235375f98Sopenharmony_ci{
128335375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
128435375f98Sopenharmony_ci    TEST_IGNORE();
128535375f98Sopenharmony_ci#else
128635375f98Sopenharmony_ci    UNITY_UINT64 expected[] = {0xABCD123400000000, 0xABCD112200000000, 0xABCD127700000000};
128735375f98Sopenharmony_ci
128835375f98Sopenharmony_ci    TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(0x6E00000000, expected, expected, 3, "Custom Message.");
128935375f98Sopenharmony_ci#endif
129035375f98Sopenharmony_ci}
129135375f98Sopenharmony_ci
129235375f98Sopenharmony_civoid testHEX32ArrayWithinDelta(void)
129335375f98Sopenharmony_ci{
129435375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
129535375f98Sopenharmony_ci    UNITY_UINT actualSmallDelta[] = {0xABCD1235, 0xABCD1121, 0xABCD1277};
129635375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
129735375f98Sopenharmony_ci
129835375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
129935375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
130035375f98Sopenharmony_ci}
130135375f98Sopenharmony_ci
130235375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaShouldNotHaveSignIssues(void)
130335375f98Sopenharmony_ci{
130435375f98Sopenharmony_ci    UNITY_UINT32 expected[] = {0x7FFFFFFF, 0x80000000};
130535375f98Sopenharmony_ci    UNITY_UINT32 actualBigDelta[] = {0x80000000, 0x7FFFFFFF};
130635375f98Sopenharmony_ci
130735375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(1, expected, actualBigDelta, 2);
130835375f98Sopenharmony_ci}
130935375f98Sopenharmony_ci
131035375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaAndMessage(void)
131135375f98Sopenharmony_ci{
131235375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
131335375f98Sopenharmony_ci    UNITY_UINT actualSmallDelta[] = {0xABCD1235, 0xABCD1121, 0xABCD1277};
131435375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
131535375f98Sopenharmony_ci
131635375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
131735375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
131835375f98Sopenharmony_ci}
131935375f98Sopenharmony_ci
132035375f98Sopenharmony_civoid testHEX32ArrayNotWithinDelta(void)
132135375f98Sopenharmony_ci{
132235375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
132335375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
132435375f98Sopenharmony_ci
132535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
132635375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
132735375f98Sopenharmony_ci    VERIFY_FAILS_END
132835375f98Sopenharmony_ci}
132935375f98Sopenharmony_ci
133035375f98Sopenharmony_civoid testHEX32ArrayNotWithinDeltaAndMessage(void)
133135375f98Sopenharmony_ci{
133235375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
133335375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
133435375f98Sopenharmony_ci
133535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
133635375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
133735375f98Sopenharmony_ci    VERIFY_FAILS_END
133835375f98Sopenharmony_ci}
133935375f98Sopenharmony_ci
134035375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaPointless(void)
134135375f98Sopenharmony_ci{
134235375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
134335375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
134435375f98Sopenharmony_ci
134535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
134635375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
134735375f98Sopenharmony_ci    VERIFY_FAILS_END
134835375f98Sopenharmony_ci}
134935375f98Sopenharmony_ci
135035375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaPointlessAndMessage(void)
135135375f98Sopenharmony_ci{
135235375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
135335375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
135435375f98Sopenharmony_ci
135535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
135635375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
135735375f98Sopenharmony_ci    VERIFY_FAILS_END
135835375f98Sopenharmony_ci}
135935375f98Sopenharmony_ci
136035375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaExpectedNull(void)
136135375f98Sopenharmony_ci{
136235375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
136335375f98Sopenharmony_ci
136435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
136535375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
136635375f98Sopenharmony_ci    VERIFY_FAILS_END
136735375f98Sopenharmony_ci}
136835375f98Sopenharmony_ci
136935375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaExpectedNullAndMessage(void)
137035375f98Sopenharmony_ci{
137135375f98Sopenharmony_ci    UNITY_UINT actualBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC};
137235375f98Sopenharmony_ci
137335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
137435375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
137535375f98Sopenharmony_ci    VERIFY_FAILS_END
137635375f98Sopenharmony_ci}
137735375f98Sopenharmony_ci
137835375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaActualNull(void)
137935375f98Sopenharmony_ci{
138035375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
138135375f98Sopenharmony_ci
138235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
138335375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, NULL, 3);
138435375f98Sopenharmony_ci    VERIFY_FAILS_END
138535375f98Sopenharmony_ci}
138635375f98Sopenharmony_ci
138735375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaActualNullAndMessage(void)
138835375f98Sopenharmony_ci{
138935375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
139035375f98Sopenharmony_ci
139135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
139235375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
139335375f98Sopenharmony_ci    VERIFY_FAILS_END
139435375f98Sopenharmony_ci}
139535375f98Sopenharmony_ci
139635375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaSamePointer(void)
139735375f98Sopenharmony_ci{
139835375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
139935375f98Sopenharmony_ci
140035375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN(110, expected, expected, 3);
140135375f98Sopenharmony_ci}
140235375f98Sopenharmony_ci
140335375f98Sopenharmony_civoid testHEX32ArrayWithinDeltaSamePointerAndMessage(void)
140435375f98Sopenharmony_ci{
140535375f98Sopenharmony_ci    UNITY_UINT expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277};
140635375f98Sopenharmony_ci
140735375f98Sopenharmony_ci    TEST_ASSERT_HEX32_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
140835375f98Sopenharmony_ci}
140935375f98Sopenharmony_ci
141035375f98Sopenharmony_ci
141135375f98Sopenharmony_civoid testHEX16ArrayWithinDelta(void)
141235375f98Sopenharmony_ci{
141335375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
141435375f98Sopenharmony_ci    UNITY_UINT16 actualSmallDelta[] = {0x1235, 0x1121, 0x1277};
141535375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
141635375f98Sopenharmony_ci
141735375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
141835375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, actualBigDelta, 3);
141935375f98Sopenharmony_ci}
142035375f98Sopenharmony_ci
142135375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaShouldNotHaveSignIssues(void)
142235375f98Sopenharmony_ci{
142335375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x7FFF, 0x8000};
142435375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x8000, 0x7FFF};
142535375f98Sopenharmony_ci
142635375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(1, expected, actualBigDelta, 2);
142735375f98Sopenharmony_ci}
142835375f98Sopenharmony_ci
142935375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaAndMessage(void)
143035375f98Sopenharmony_ci{
143135375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
143235375f98Sopenharmony_ci    UNITY_UINT16 actualSmallDelta[] = {0x1235, 0x1121, 0x1277};
143335375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
143435375f98Sopenharmony_ci
143535375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
143635375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 3, "Custom Message.");
143735375f98Sopenharmony_ci}
143835375f98Sopenharmony_ci
143935375f98Sopenharmony_civoid testHEX16ArrayNotWithinDelta(void)
144035375f98Sopenharmony_ci{
144135375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
144235375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
144335375f98Sopenharmony_ci
144435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
144535375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
144635375f98Sopenharmony_ci    VERIFY_FAILS_END
144735375f98Sopenharmony_ci}
144835375f98Sopenharmony_ci
144935375f98Sopenharmony_civoid testHEX16ArrayNotWithinDeltaAndMessage(void)
145035375f98Sopenharmony_ci{
145135375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
145235375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
145335375f98Sopenharmony_ci
145435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
145535375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
145635375f98Sopenharmony_ci    VERIFY_FAILS_END
145735375f98Sopenharmony_ci}
145835375f98Sopenharmony_ci
145935375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaPointless(void)
146035375f98Sopenharmony_ci{
146135375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
146235375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
146335375f98Sopenharmony_ci
146435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
146535375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, actualBigDelta, 0);
146635375f98Sopenharmony_ci    VERIFY_FAILS_END
146735375f98Sopenharmony_ci}
146835375f98Sopenharmony_ci
146935375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaPointlessAndMessage(void)
147035375f98Sopenharmony_ci{
147135375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
147235375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
147335375f98Sopenharmony_ci
147435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
147535375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, actualBigDelta, 0, "Custom Message.");
147635375f98Sopenharmony_ci    VERIFY_FAILS_END
147735375f98Sopenharmony_ci}
147835375f98Sopenharmony_ci
147935375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaExpectedNull(void)
148035375f98Sopenharmony_ci{
148135375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
148235375f98Sopenharmony_ci
148335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
148435375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(110, NULL, actualBigDelta, 3);
148535375f98Sopenharmony_ci    VERIFY_FAILS_END
148635375f98Sopenharmony_ci}
148735375f98Sopenharmony_ci
148835375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaExpectedNullAndMessage(void)
148935375f98Sopenharmony_ci{
149035375f98Sopenharmony_ci    UNITY_UINT16 actualBigDelta[] = {0x1267, 0x1188, 0x12AC};
149135375f98Sopenharmony_ci
149235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
149335375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, NULL, actualBigDelta, 3, "Custom Message.");
149435375f98Sopenharmony_ci    VERIFY_FAILS_END
149535375f98Sopenharmony_ci}
149635375f98Sopenharmony_ci
149735375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaActualNull(void)
149835375f98Sopenharmony_ci{
149935375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
150035375f98Sopenharmony_ci
150135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
150235375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, NULL, 3);
150335375f98Sopenharmony_ci    VERIFY_FAILS_END
150435375f98Sopenharmony_ci}
150535375f98Sopenharmony_ci
150635375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaActualNullAndMessage(void)
150735375f98Sopenharmony_ci{
150835375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
150935375f98Sopenharmony_ci
151035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
151135375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, NULL, 3, "Custom Message.");
151235375f98Sopenharmony_ci    VERIFY_FAILS_END
151335375f98Sopenharmony_ci}
151435375f98Sopenharmony_ci
151535375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaSamePointer(void)
151635375f98Sopenharmony_ci{
151735375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
151835375f98Sopenharmony_ci
151935375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN(110, expected, expected, 3);
152035375f98Sopenharmony_ci}
152135375f98Sopenharmony_ci
152235375f98Sopenharmony_civoid testHEX16ArrayWithinDeltaSamePointerAndMessage(void)
152335375f98Sopenharmony_ci{
152435375f98Sopenharmony_ci    UNITY_UINT16 expected[] = {0x1234, 0x1122, 0x1277};
152535375f98Sopenharmony_ci
152635375f98Sopenharmony_ci    TEST_ASSERT_HEX16_ARRAY_WITHIN_MESSAGE(110, expected, expected, 3, "Custom Message.");
152735375f98Sopenharmony_ci}
152835375f98Sopenharmony_ci
152935375f98Sopenharmony_civoid testHEX8ArrayWithinDelta(void)
153035375f98Sopenharmony_ci{
153135375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
153235375f98Sopenharmony_ci    UNITY_UINT8 actualSmallDelta[] = {0x35, 0x21, 0x77};
153335375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x47, 0x48, 0x4C};
153435375f98Sopenharmony_ci
153535375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(1, expected, actualSmallDelta, 3);
153635375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, actualBigDelta, 3);
153735375f98Sopenharmony_ci}
153835375f98Sopenharmony_ci
153935375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaAndMessage(void)
154035375f98Sopenharmony_ci{
154135375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
154235375f98Sopenharmony_ci    UNITY_UINT8 actualSmallDelta[] = {0x35, 0x21, 0x77};
154335375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x47, 0x48, 0x4C};
154435375f98Sopenharmony_ci
154535375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(1, expected, actualSmallDelta, 3, "Custom Message.");
154635375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, actualBigDelta, 3, "Custom Message.");
154735375f98Sopenharmony_ci}
154835375f98Sopenharmony_ci
154935375f98Sopenharmony_civoid testHEX8ArrayNotWithinDelta(void)
155035375f98Sopenharmony_ci{
155135375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
155235375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
155335375f98Sopenharmony_ci
155435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
155535375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(1, expected, actualBigDelta, 3);
155635375f98Sopenharmony_ci    VERIFY_FAILS_END
155735375f98Sopenharmony_ci}
155835375f98Sopenharmony_ci
155935375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaShouldNotHaveSignIssues(void)
156035375f98Sopenharmony_ci{
156135375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x7F, 0x80};
156235375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x80, 0x7F};
156335375f98Sopenharmony_ci
156435375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(1, expected, actualBigDelta, 2);
156535375f98Sopenharmony_ci}
156635375f98Sopenharmony_ci
156735375f98Sopenharmony_civoid testHEX8ArrayNotWithinDeltaAndMessage(void)
156835375f98Sopenharmony_ci{
156935375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
157035375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
157135375f98Sopenharmony_ci
157235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
157335375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(1, expected, actualBigDelta, 3, "Custom Message.");
157435375f98Sopenharmony_ci    VERIFY_FAILS_END
157535375f98Sopenharmony_ci}
157635375f98Sopenharmony_ci
157735375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaPointless(void)
157835375f98Sopenharmony_ci{
157935375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
158035375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
158135375f98Sopenharmony_ci
158235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
158335375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, actualBigDelta, 0);
158435375f98Sopenharmony_ci    VERIFY_FAILS_END
158535375f98Sopenharmony_ci}
158635375f98Sopenharmony_ci
158735375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaPointlessAndMessage(void)
158835375f98Sopenharmony_ci{
158935375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
159035375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
159135375f98Sopenharmony_ci
159235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
159335375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, actualBigDelta, 0, "Custom Message.");
159435375f98Sopenharmony_ci    VERIFY_FAILS_END
159535375f98Sopenharmony_ci}
159635375f98Sopenharmony_ci
159735375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaExpectedNull(void)
159835375f98Sopenharmony_ci{
159935375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
160035375f98Sopenharmony_ci
160135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
160235375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(60, NULL, actualBigDelta, 3);
160335375f98Sopenharmony_ci    VERIFY_FAILS_END
160435375f98Sopenharmony_ci}
160535375f98Sopenharmony_ci
160635375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaExpectedNullAndMessage(void)
160735375f98Sopenharmony_ci{
160835375f98Sopenharmony_ci    UNITY_UINT8 actualBigDelta[] = {0x67, 0x88, 0xAC};
160935375f98Sopenharmony_ci
161035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
161135375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, NULL, actualBigDelta, 3, "Custom Message.");
161235375f98Sopenharmony_ci    VERIFY_FAILS_END
161335375f98Sopenharmony_ci}
161435375f98Sopenharmony_ci
161535375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaActualNull(void)
161635375f98Sopenharmony_ci{
161735375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
161835375f98Sopenharmony_ci
161935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
162035375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, NULL, 3);
162135375f98Sopenharmony_ci    VERIFY_FAILS_END
162235375f98Sopenharmony_ci}
162335375f98Sopenharmony_ci
162435375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaActualNullAndMessage(void)
162535375f98Sopenharmony_ci{
162635375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
162735375f98Sopenharmony_ci
162835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
162935375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, NULL, 3, "Custom Message.");
163035375f98Sopenharmony_ci    VERIFY_FAILS_END
163135375f98Sopenharmony_ci}
163235375f98Sopenharmony_ci
163335375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaSamePointer(void)
163435375f98Sopenharmony_ci{
163535375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
163635375f98Sopenharmony_ci
163735375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN(60, expected, expected, 3);
163835375f98Sopenharmony_ci}
163935375f98Sopenharmony_ci
164035375f98Sopenharmony_civoid testHEX8ArrayWithinDeltaSamePointerAndMessage(void)
164135375f98Sopenharmony_ci{
164235375f98Sopenharmony_ci    UNITY_UINT8 expected[] = {0x34, 0x22, 0x77};
164335375f98Sopenharmony_ci
164435375f98Sopenharmony_ci    TEST_ASSERT_HEX8_ARRAY_WITHIN_MESSAGE(60, expected, expected, 3, "Custom Message.");
164535375f98Sopenharmony_ci}
164635375f98Sopenharmony_ci
164735375f98Sopenharmony_civoid testEqualIntArrays(void)
164835375f98Sopenharmony_ci{
164935375f98Sopenharmony_ci    int p0[] = {1, 8, 987, -2};
165035375f98Sopenharmony_ci    int p1[] = {1, 8, 987, -2};
165135375f98Sopenharmony_ci    int p2[] = {1, 8, 987, 2};
165235375f98Sopenharmony_ci    int p3[] = {1, 500, 600, 700};
165335375f98Sopenharmony_ci
165435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p0, 1);
165535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p0, 4);
165635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
165735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p2, 3);
165835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p3, 1);
165935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(NULL, NULL, 1);
166035375f98Sopenharmony_ci}
166135375f98Sopenharmony_ci
166235375f98Sopenharmony_civoid testNotEqualIntArraysNullExpected(void)
166335375f98Sopenharmony_ci{
166435375f98Sopenharmony_ci    int* p0 = NULL;
166535375f98Sopenharmony_ci    int p1[] = {1, 8, 987, 2};
166635375f98Sopenharmony_ci
166735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
166835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
166935375f98Sopenharmony_ci    VERIFY_FAILS_END
167035375f98Sopenharmony_ci}
167135375f98Sopenharmony_ci
167235375f98Sopenharmony_civoid testNotEqualIntArraysNullActual(void)
167335375f98Sopenharmony_ci{
167435375f98Sopenharmony_ci    int* p1 = NULL;
167535375f98Sopenharmony_ci    int p0[] = {1, 8, 987, 2};
167635375f98Sopenharmony_ci
167735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
167835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
167935375f98Sopenharmony_ci    VERIFY_FAILS_END
168035375f98Sopenharmony_ci}
168135375f98Sopenharmony_ci
168235375f98Sopenharmony_civoid testNotEqualIntArrays1(void)
168335375f98Sopenharmony_ci{
168435375f98Sopenharmony_ci    int p0[] = {1, 8, 987, -2};
168535375f98Sopenharmony_ci    int p1[] = {1, 8, 987, 2};
168635375f98Sopenharmony_ci
168735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
168835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
168935375f98Sopenharmony_ci    VERIFY_FAILS_END
169035375f98Sopenharmony_ci}
169135375f98Sopenharmony_ci
169235375f98Sopenharmony_civoid testNotEqualIntArrays2(void)
169335375f98Sopenharmony_ci{
169435375f98Sopenharmony_ci    int p0[] = {1, 8, 987, -2};
169535375f98Sopenharmony_ci    int p1[] = {2, 8, 987, -2};
169635375f98Sopenharmony_ci
169735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
169835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
169935375f98Sopenharmony_ci    VERIFY_FAILS_END
170035375f98Sopenharmony_ci}
170135375f98Sopenharmony_ci
170235375f98Sopenharmony_civoid testNotEqualIntArrays3(void)
170335375f98Sopenharmony_ci{
170435375f98Sopenharmony_ci    int p0[] = {1, 8, 987, -2};
170535375f98Sopenharmony_ci    int p1[] = {1, 8, 986, -2};
170635375f98Sopenharmony_ci
170735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
170835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 4);
170935375f98Sopenharmony_ci    VERIFY_FAILS_END
171035375f98Sopenharmony_ci}
171135375f98Sopenharmony_ci
171235375f98Sopenharmony_civoid testNotEqualIntArraysLengthZero(void)
171335375f98Sopenharmony_ci{
171435375f98Sopenharmony_ci    UNITY_UINT32 p0[1] = {1};
171535375f98Sopenharmony_ci    UNITY_UINT32 p1[1] = {1};
171635375f98Sopenharmony_ci
171735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
171835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 0);
171935375f98Sopenharmony_ci    VERIFY_FAILS_END
172035375f98Sopenharmony_ci}
172135375f98Sopenharmony_ci
172235375f98Sopenharmony_civoid testEqualIntEachEqual(void)
172335375f98Sopenharmony_ci{
172435375f98Sopenharmony_ci    int p0[] = {1, 1, 1, 1};
172535375f98Sopenharmony_ci    int p1[] = {987, 987, 987, 987};
172635375f98Sopenharmony_ci    int p2[] = {-2, -2, -2, -3};
172735375f98Sopenharmony_ci    int p3[] = {1, 5, 600, 700};
172835375f98Sopenharmony_ci
172935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(1, p0, 1);
173035375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(1, p0, 4);
173135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(987, p1, 4);
173235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(-2, p2, 3);
173335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(1, p3, 1);
173435375f98Sopenharmony_ci}
173535375f98Sopenharmony_ci
173635375f98Sopenharmony_civoid testNotEqualIntEachEqualNullActual(void)
173735375f98Sopenharmony_ci{
173835375f98Sopenharmony_ci    int* p1 = NULL;
173935375f98Sopenharmony_ci
174035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
174135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(1, p1, 4);
174235375f98Sopenharmony_ci    VERIFY_FAILS_END
174335375f98Sopenharmony_ci}
174435375f98Sopenharmony_ci
174535375f98Sopenharmony_civoid testNotEqualIntEachEqual1(void)
174635375f98Sopenharmony_ci{
174735375f98Sopenharmony_ci    int p0[] = {1, 1, 1, -2};
174835375f98Sopenharmony_ci
174935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
175035375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(1, p0, 4);
175135375f98Sopenharmony_ci    VERIFY_FAILS_END
175235375f98Sopenharmony_ci}
175335375f98Sopenharmony_ci
175435375f98Sopenharmony_civoid testNotEqualIntEachEqual2(void)
175535375f98Sopenharmony_ci{
175635375f98Sopenharmony_ci    int p0[] = {-5, -5, -1, -5};
175735375f98Sopenharmony_ci
175835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
175935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(-5, p0, 4);
176035375f98Sopenharmony_ci    VERIFY_FAILS_END
176135375f98Sopenharmony_ci}
176235375f98Sopenharmony_ci
176335375f98Sopenharmony_civoid testNotEqualIntEachEqual3(void)
176435375f98Sopenharmony_ci{
176535375f98Sopenharmony_ci    int p0[] = {1, 88, 88, 88};
176635375f98Sopenharmony_ci
176735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
176835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(88, p0, 4);
176935375f98Sopenharmony_ci    VERIFY_FAILS_END
177035375f98Sopenharmony_ci}
177135375f98Sopenharmony_ci
177235375f98Sopenharmony_civoid testNotEqualEachEqualLengthZero(void)
177335375f98Sopenharmony_ci{
177435375f98Sopenharmony_ci    UNITY_UINT32 p0[1] = {1};
177535375f98Sopenharmony_ci
177635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
177735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT(0, p0, 0);
177835375f98Sopenharmony_ci    VERIFY_FAILS_END
177935375f98Sopenharmony_ci}
178035375f98Sopenharmony_ci
178135375f98Sopenharmony_civoid testEqualPtrArrays(void)
178235375f98Sopenharmony_ci{
178335375f98Sopenharmony_ci    char A = 1;
178435375f98Sopenharmony_ci    char B = 2;
178535375f98Sopenharmony_ci    char C = 3;
178635375f98Sopenharmony_ci    char* p0[] = {&A, &B, &C};
178735375f98Sopenharmony_ci    char* p1[] = {&A, &B, &C, &A};
178835375f98Sopenharmony_ci    char* p2[] = {&A, &B};
178935375f98Sopenharmony_ci    char* p3[] = {&A};
179035375f98Sopenharmony_ci
179135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p0, 1);
179235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p0, 3);
179335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 3);
179435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p1, p2, 2);
179535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p3, p0, 1);
179635375f98Sopenharmony_ci}
179735375f98Sopenharmony_ci
179835375f98Sopenharmony_civoid testNotEqualPtrArraysNullExpected(void)
179935375f98Sopenharmony_ci{
180035375f98Sopenharmony_ci    char A = 1;
180135375f98Sopenharmony_ci    char B = 2;
180235375f98Sopenharmony_ci    char** p0 = NULL;
180335375f98Sopenharmony_ci    char* p1[] = {&A, &B};
180435375f98Sopenharmony_ci
180535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
180635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 2);
180735375f98Sopenharmony_ci    VERIFY_FAILS_END
180835375f98Sopenharmony_ci}
180935375f98Sopenharmony_ci
181035375f98Sopenharmony_civoid testNotEqualPtrArraysNullActual(void)
181135375f98Sopenharmony_ci{
181235375f98Sopenharmony_ci    char A = 1;
181335375f98Sopenharmony_ci    char B = 2;
181435375f98Sopenharmony_ci    char** p0 = NULL;
181535375f98Sopenharmony_ci    char* p1[] = {&A, &B};
181635375f98Sopenharmony_ci
181735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
181835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p1, p0, 2);
181935375f98Sopenharmony_ci    VERIFY_FAILS_END
182035375f98Sopenharmony_ci}
182135375f98Sopenharmony_ci
182235375f98Sopenharmony_civoid testNotEqualPtrArrays1(void)
182335375f98Sopenharmony_ci{
182435375f98Sopenharmony_ci    char A = 1;
182535375f98Sopenharmony_ci    char B = 2;
182635375f98Sopenharmony_ci    char C = 3;
182735375f98Sopenharmony_ci    char* p0[] = {&A, &B, &C, &B};
182835375f98Sopenharmony_ci    char* p1[] = {&A, &B, &C, &A};
182935375f98Sopenharmony_ci
183035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
183135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 4);
183235375f98Sopenharmony_ci    VERIFY_FAILS_END
183335375f98Sopenharmony_ci}
183435375f98Sopenharmony_ci
183535375f98Sopenharmony_civoid testNotEqualPtrArrays2(void)
183635375f98Sopenharmony_ci{
183735375f98Sopenharmony_ci    char A = 1;
183835375f98Sopenharmony_ci    char B = 2;
183935375f98Sopenharmony_ci    char C = 3;
184035375f98Sopenharmony_ci    char* p0[] = {&B, &B, &C, &A};
184135375f98Sopenharmony_ci    char* p1[] = {&A, &B, &C, &A};
184235375f98Sopenharmony_ci
184335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
184435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 4);
184535375f98Sopenharmony_ci    VERIFY_FAILS_END
184635375f98Sopenharmony_ci}
184735375f98Sopenharmony_ci
184835375f98Sopenharmony_civoid testNotEqualPtrArrays3(void)
184935375f98Sopenharmony_ci{
185035375f98Sopenharmony_ci    char A = 1;
185135375f98Sopenharmony_ci    char B = 2;
185235375f98Sopenharmony_ci    char C = 3;
185335375f98Sopenharmony_ci    char* p0[] = {&A, &B, &B, &A};
185435375f98Sopenharmony_ci    char* p1[] = {&A, &B, &C, &A};
185535375f98Sopenharmony_ci
185635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
185735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_PTR_ARRAY(p0, p1, 4);
185835375f98Sopenharmony_ci    VERIFY_FAILS_END
185935375f98Sopenharmony_ci}
186035375f98Sopenharmony_ci
186135375f98Sopenharmony_civoid testEqualPtrEachEqual(void)
186235375f98Sopenharmony_ci{
186335375f98Sopenharmony_ci    char A = 1;
186435375f98Sopenharmony_ci    char B = 2;
186535375f98Sopenharmony_ci    char C = 3;
186635375f98Sopenharmony_ci    char* p0[] = {&A, &A, &A};
186735375f98Sopenharmony_ci    char* p1[] = {&A, &B, &C, &A};
186835375f98Sopenharmony_ci    char* p2[] = {&B, &B};
186935375f98Sopenharmony_ci    char* p3[] = {&C};
187035375f98Sopenharmony_ci
187135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 1);
187235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 3);
187335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&A, p1, 1);
187435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&B, p2, 2);
187535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&C, p3, 1);
187635375f98Sopenharmony_ci}
187735375f98Sopenharmony_ci
187835375f98Sopenharmony_civoid testNotEqualPtrEachEqualNullExpected(void)
187935375f98Sopenharmony_ci{
188035375f98Sopenharmony_ci    char A = 1;
188135375f98Sopenharmony_ci    char B = 1;
188235375f98Sopenharmony_ci    char* p0[] = {&A, &B};
188335375f98Sopenharmony_ci
188435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
188535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 2);
188635375f98Sopenharmony_ci    VERIFY_FAILS_END
188735375f98Sopenharmony_ci}
188835375f98Sopenharmony_ci
188935375f98Sopenharmony_civoid testNotEqualPtrEachEqualNullActual(void)
189035375f98Sopenharmony_ci{
189135375f98Sopenharmony_ci    char A = 1;
189235375f98Sopenharmony_ci    char** p0 = NULL;
189335375f98Sopenharmony_ci
189435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
189535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 2);
189635375f98Sopenharmony_ci    VERIFY_FAILS_END
189735375f98Sopenharmony_ci}
189835375f98Sopenharmony_ci
189935375f98Sopenharmony_civoid testNotEqualPtrEachEqual1(void)
190035375f98Sopenharmony_ci{
190135375f98Sopenharmony_ci    char A = 1;
190235375f98Sopenharmony_ci    char B = 1;
190335375f98Sopenharmony_ci    char* p0[] = {&A, &A, &A, &B};
190435375f98Sopenharmony_ci
190535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
190635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&A, p0, 4);
190735375f98Sopenharmony_ci    VERIFY_FAILS_END
190835375f98Sopenharmony_ci}
190935375f98Sopenharmony_ci
191035375f98Sopenharmony_civoid testNotEqualPtrEachEqual2(void)
191135375f98Sopenharmony_ci{
191235375f98Sopenharmony_ci    char A = 1;
191335375f98Sopenharmony_ci    char B = 1;
191435375f98Sopenharmony_ci    char* p0[] = {&B, &B, &A, &B};
191535375f98Sopenharmony_ci
191635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
191735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&B, p0, 4);
191835375f98Sopenharmony_ci    VERIFY_FAILS_END
191935375f98Sopenharmony_ci}
192035375f98Sopenharmony_ci
192135375f98Sopenharmony_civoid testNotEqualPtrEachEqual3(void)
192235375f98Sopenharmony_ci{
192335375f98Sopenharmony_ci    char A = 1;
192435375f98Sopenharmony_ci    char B = 1;
192535375f98Sopenharmony_ci    char* p0[] = {&A, &B, &B, &B};
192635375f98Sopenharmony_ci
192735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
192835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_PTR(&B, p0, 4);
192935375f98Sopenharmony_ci    VERIFY_FAILS_END
193035375f98Sopenharmony_ci}
193135375f98Sopenharmony_ci
193235375f98Sopenharmony_civoid testEqualInt8Arrays(void)
193335375f98Sopenharmony_ci{
193435375f98Sopenharmony_ci    UNITY_INT8 p0[] = {1, 8, 117, -2};
193535375f98Sopenharmony_ci    UNITY_INT8 p1[] = {1, 8, 117, -2};
193635375f98Sopenharmony_ci    UNITY_INT8 p2[] = {1, 8, 117, 2};
193735375f98Sopenharmony_ci    UNITY_INT8 p3[] = {1, 50, 60, 70};
193835375f98Sopenharmony_ci
193935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p0, 1);
194035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p0, 4);
194135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p1, 4);
194235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p2, 3);
194335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p3, 1);
194435375f98Sopenharmony_ci}
194535375f98Sopenharmony_ci
194635375f98Sopenharmony_civoid testNotEqualInt8Arrays(void)
194735375f98Sopenharmony_ci{
194835375f98Sopenharmony_ci    UNITY_INT8 p0[] = {1, 8, 36, -2};
194935375f98Sopenharmony_ci    UNITY_INT8 p1[] = {1, 8, 36, 2};
195035375f98Sopenharmony_ci
195135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
195235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p1, 4);
195335375f98Sopenharmony_ci    VERIFY_FAILS_END
195435375f98Sopenharmony_ci}
195535375f98Sopenharmony_ci
195635375f98Sopenharmony_civoid testEqualInt8EachEqual(void)
195735375f98Sopenharmony_ci{
195835375f98Sopenharmony_ci    UNITY_INT8 p0[] = {1, 1, 1, 1};
195935375f98Sopenharmony_ci    UNITY_INT8 p1[] = {117, 117, 117, -2};
196035375f98Sopenharmony_ci    UNITY_INT8 p2[] = {-1, -1, 117, 2};
196135375f98Sopenharmony_ci    UNITY_INT8 p3[] = {1, 50, 60, 70};
196235375f98Sopenharmony_ci
196335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT8(1, p0, 1);
196435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT8(1, p0, 4);
196535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT8(117, p1, 3);
196635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT8(-1, p2, 2);
196735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT8(1, p3, 1);
196835375f98Sopenharmony_ci}
196935375f98Sopenharmony_ci
197035375f98Sopenharmony_civoid testNotEqualInt8EachEqual(void)
197135375f98Sopenharmony_ci{
197235375f98Sopenharmony_ci    UNITY_INT8 p0[] = {1, 8, 36, -2};
197335375f98Sopenharmony_ci
197435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
197535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT8(1, p0, 2);
197635375f98Sopenharmony_ci    VERIFY_FAILS_END
197735375f98Sopenharmony_ci}
197835375f98Sopenharmony_ci
197935375f98Sopenharmony_civoid testEqualCHARArrays(void)
198035375f98Sopenharmony_ci{
198135375f98Sopenharmony_ci    char p0[] = {1, 8, 117, -2};
198235375f98Sopenharmony_ci    char p1[] = {1, 8, 117, -2};
198335375f98Sopenharmony_ci    char p2[] = {1, 8, 117, 2};
198435375f98Sopenharmony_ci    char p3[] = {1, 50, 60, 70};
198535375f98Sopenharmony_ci
198635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p0, 1);
198735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p0, 4);
198835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p1, 4);
198935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p2, 3);
199035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p3, 1);
199135375f98Sopenharmony_ci}
199235375f98Sopenharmony_ci
199335375f98Sopenharmony_civoid testNotEqualCHARArrays(void)
199435375f98Sopenharmony_ci{
199535375f98Sopenharmony_ci    char p0[] = {1, 8, 36, -2};
199635375f98Sopenharmony_ci    char p1[] = {1, 8, 36, 2};
199735375f98Sopenharmony_ci
199835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
199935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_CHAR_ARRAY(p0, p1, 4);
200035375f98Sopenharmony_ci    VERIFY_FAILS_END
200135375f98Sopenharmony_ci}
200235375f98Sopenharmony_ci
200335375f98Sopenharmony_civoid testEqualCHAREachEqual(void)
200435375f98Sopenharmony_ci{
200535375f98Sopenharmony_ci    char p0[] = {1, 1, 1, 1};
200635375f98Sopenharmony_ci    char p1[] = {117, 117, 117, -2};
200735375f98Sopenharmony_ci    char p2[] = {-1, -1, 117, 2};
200835375f98Sopenharmony_ci    char p3[] = {1, 50, 60, 70};
200935375f98Sopenharmony_ci
201035375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_CHAR(1, p0, 1);
201135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_CHAR(1, p0, 4);
201235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_CHAR(117, p1, 3);
201335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_CHAR(-1, p2, 2);
201435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_CHAR(1, p3, 1);
201535375f98Sopenharmony_ci}
201635375f98Sopenharmony_ci
201735375f98Sopenharmony_civoid testNotEqualCHAREachEqual(void)
201835375f98Sopenharmony_ci{
201935375f98Sopenharmony_ci    char p0[] = {1, 8, 36, -2};
202035375f98Sopenharmony_ci
202135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
202235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_CHAR(1, p0, 2);
202335375f98Sopenharmony_ci    VERIFY_FAILS_END
202435375f98Sopenharmony_ci}
202535375f98Sopenharmony_ci
202635375f98Sopenharmony_civoid testEqualUIntArrays(void)
202735375f98Sopenharmony_ci{
202835375f98Sopenharmony_ci    unsigned int p0[] = {1, 8, 987, 65132u};
202935375f98Sopenharmony_ci    unsigned int p1[] = {1, 8, 987, 65132u};
203035375f98Sopenharmony_ci    unsigned int p2[] = {1, 8, 987, 2};
203135375f98Sopenharmony_ci    unsigned int p3[] = {1, 500, 600, 700};
203235375f98Sopenharmony_ci
203335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p0, 1);
203435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p0, 4);
203535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
203635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p2, 3);
203735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p3, 1);
203835375f98Sopenharmony_ci}
203935375f98Sopenharmony_ci
204035375f98Sopenharmony_civoid testNotEqualUIntArrays1(void)
204135375f98Sopenharmony_ci{
204235375f98Sopenharmony_ci    unsigned int p0[] = {1, 8, 987, 65132u};
204335375f98Sopenharmony_ci    unsigned int p1[] = {1, 8, 987, 65131u};
204435375f98Sopenharmony_ci
204535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
204635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
204735375f98Sopenharmony_ci    VERIFY_FAILS_END
204835375f98Sopenharmony_ci}
204935375f98Sopenharmony_ci
205035375f98Sopenharmony_civoid testNotEqualUIntArrays2(void)
205135375f98Sopenharmony_ci{
205235375f98Sopenharmony_ci    unsigned int p0[] = {1, 8, 987, 65132u};
205335375f98Sopenharmony_ci    unsigned int p1[] = {2, 8, 987, 65132u};
205435375f98Sopenharmony_ci
205535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
205635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
205735375f98Sopenharmony_ci    VERIFY_FAILS_END
205835375f98Sopenharmony_ci}
205935375f98Sopenharmony_ci
206035375f98Sopenharmony_civoid testNotEqualUIntArrays3(void)
206135375f98Sopenharmony_ci{
206235375f98Sopenharmony_ci    unsigned int p0[] = {1, 8, 987, 65132u};
206335375f98Sopenharmony_ci    unsigned int p1[] = {1, 8, 986, 65132u};
206435375f98Sopenharmony_ci
206535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
206635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT_ARRAY(p0, p1, 4);
206735375f98Sopenharmony_ci    VERIFY_FAILS_END
206835375f98Sopenharmony_ci}
206935375f98Sopenharmony_ci
207035375f98Sopenharmony_civoid testEqualUIntEachEqual(void)
207135375f98Sopenharmony_ci{
207235375f98Sopenharmony_ci    unsigned int p0[] = {1, 1, 1, 1};
207335375f98Sopenharmony_ci    unsigned int p1[] = {65132u, 65132u, 65132u, 65132u};
207435375f98Sopenharmony_ci    unsigned int p2[] = {8, 8, 987, 2};
207535375f98Sopenharmony_ci    unsigned int p3[] = {1, 500, 600, 700};
207635375f98Sopenharmony_ci
207735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(1, p0, 1);
207835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(1, p0, 4);
207935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(65132u, p1, 4);
208035375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(8, p2, 2);
208135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(1, p3, 1);
208235375f98Sopenharmony_ci}
208335375f98Sopenharmony_ci
208435375f98Sopenharmony_civoid testNotEqualUIntEachEqual1(void)
208535375f98Sopenharmony_ci{
208635375f98Sopenharmony_ci    unsigned int p0[] = {1, 65132u, 65132u, 65132u};
208735375f98Sopenharmony_ci
208835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
208935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(65132u, p0, 4);
209035375f98Sopenharmony_ci    VERIFY_FAILS_END
209135375f98Sopenharmony_ci}
209235375f98Sopenharmony_ci
209335375f98Sopenharmony_civoid testNotEqualUIntEachEqual2(void)
209435375f98Sopenharmony_ci{
209535375f98Sopenharmony_ci    unsigned int p0[] = {987, 8, 987, 987};
209635375f98Sopenharmony_ci
209735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
209835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(987, p0, 4);
209935375f98Sopenharmony_ci    VERIFY_FAILS_END
210035375f98Sopenharmony_ci}
210135375f98Sopenharmony_ci
210235375f98Sopenharmony_civoid testNotEqualUIntEachEqual3(void)
210335375f98Sopenharmony_ci{
210435375f98Sopenharmony_ci    unsigned int p0[] = {1, 1, 1, 65132u};
210535375f98Sopenharmony_ci
210635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
210735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT(1, p0, 4);
210835375f98Sopenharmony_ci    VERIFY_FAILS_END
210935375f98Sopenharmony_ci}
211035375f98Sopenharmony_ci
211135375f98Sopenharmony_civoid testEqualInt16Arrays(void)
211235375f98Sopenharmony_ci{
211335375f98Sopenharmony_ci    UNITY_INT16 p0[] = {1, 8, 117, 3};
211435375f98Sopenharmony_ci    UNITY_INT16 p1[] = {1, 8, 117, 3};
211535375f98Sopenharmony_ci    UNITY_INT16 p2[] = {1, 8, 117, 2};
211635375f98Sopenharmony_ci    UNITY_INT16 p3[] = {1, 50, 60, 70};
211735375f98Sopenharmony_ci
211835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p0, 1);
211935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p0, 4);
212035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p1, 4);
212135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p2, 3);
212235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p3, 1);
212335375f98Sopenharmony_ci}
212435375f98Sopenharmony_ci
212535375f98Sopenharmony_civoid testNotEqualInt16Arrays(void)
212635375f98Sopenharmony_ci{
212735375f98Sopenharmony_ci    UNITY_INT16 p0[] = {1, 8, 127, 3};
212835375f98Sopenharmony_ci    UNITY_INT16 p1[] = {1, 8, 127, 2};
212935375f98Sopenharmony_ci
213035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
213135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p1, 4);
213235375f98Sopenharmony_ci    VERIFY_FAILS_END
213335375f98Sopenharmony_ci}
213435375f98Sopenharmony_ci
213535375f98Sopenharmony_civoid testEqualInt16EachEqual(void)
213635375f98Sopenharmony_ci{
213735375f98Sopenharmony_ci    UNITY_INT16 p0[] = {1, 1, 1, 1};
213835375f98Sopenharmony_ci    UNITY_INT16 p1[] = {32111, 32111, 32111, 3};
213935375f98Sopenharmony_ci    UNITY_INT16 p2[] = {-1, -1, -1, 2};
214035375f98Sopenharmony_ci    UNITY_INT16 p3[] = {1, 50, 60, 70};
214135375f98Sopenharmony_ci
214235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT16(1, p0, 1);
214335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT16(1, p0, 4);
214435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT16(32111, p1, 3);
214535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT16(-1, p2, 3);
214635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT16(1, p3, 1);
214735375f98Sopenharmony_ci}
214835375f98Sopenharmony_ci
214935375f98Sopenharmony_civoid testNotEqualInt16EachEqual(void)
215035375f98Sopenharmony_ci{
215135375f98Sopenharmony_ci    UNITY_INT16 p0[] = {127, 127, 127, 3};
215235375f98Sopenharmony_ci
215335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
215435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT16(127, p0, 4);
215535375f98Sopenharmony_ci    VERIFY_FAILS_END
215635375f98Sopenharmony_ci}
215735375f98Sopenharmony_ci
215835375f98Sopenharmony_civoid testEqualInt32Arrays(void)
215935375f98Sopenharmony_ci{
216035375f98Sopenharmony_ci    UNITY_INT32 p0[] = {1, 8, 117, 3};
216135375f98Sopenharmony_ci    UNITY_INT32 p1[] = {1, 8, 117, 3};
216235375f98Sopenharmony_ci    UNITY_INT32 p2[] = {1, 8, 117, 2};
216335375f98Sopenharmony_ci    UNITY_INT32 p3[] = {1, 50, 60, 70};
216435375f98Sopenharmony_ci
216535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p0, 1);
216635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p0, 4);
216735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p1, 4);
216835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p2, 3);
216935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p3, 1);
217035375f98Sopenharmony_ci}
217135375f98Sopenharmony_ci
217235375f98Sopenharmony_civoid testNotEqualInt32Arrays(void)
217335375f98Sopenharmony_ci{
217435375f98Sopenharmony_ci    UNITY_INT32 p0[] = {1, 8, 127, 3};
217535375f98Sopenharmony_ci    UNITY_INT32 p1[] = {1, 8, 127, 2};
217635375f98Sopenharmony_ci
217735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
217835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p1, 4);
217935375f98Sopenharmony_ci    VERIFY_FAILS_END
218035375f98Sopenharmony_ci}
218135375f98Sopenharmony_ci
218235375f98Sopenharmony_civoid testEqualInt32EachEqual(void)
218335375f98Sopenharmony_ci{
218435375f98Sopenharmony_ci    UNITY_INT32 p0[] = {8, 8, 8, 8};
218535375f98Sopenharmony_ci    UNITY_INT32 p1[] = {65537, 65537, 65537, 65537};
218635375f98Sopenharmony_ci    UNITY_INT32 p2[] = {-3, -3, -3, 2};
218735375f98Sopenharmony_ci    UNITY_INT32 p3[] = {1, 50, 60, 70};
218835375f98Sopenharmony_ci
218935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT32(8, p0, 1);
219035375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT32(8, p0, 4);
219135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT32(65537, p1, 4);
219235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT32(-3, p2, 3);
219335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT32(1, p3, 1);
219435375f98Sopenharmony_ci}
219535375f98Sopenharmony_ci
219635375f98Sopenharmony_civoid testNotEqualInt32EachEqual(void)
219735375f98Sopenharmony_ci{
219835375f98Sopenharmony_ci    UNITY_INT32 p0[] = {127, 8, 127, 127};
219935375f98Sopenharmony_ci
220035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
220135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_INT32(127, p0, 4);
220235375f98Sopenharmony_ci    VERIFY_FAILS_END
220335375f98Sopenharmony_ci}
220435375f98Sopenharmony_ci
220535375f98Sopenharmony_civoid testEqualUINT8Arrays(void)
220635375f98Sopenharmony_ci{
220735375f98Sopenharmony_ci    UNITY_UINT8 p0[] = {1, 8, 100, 127};
220835375f98Sopenharmony_ci    UNITY_UINT8 p1[] = {1, 8, 100, 127};
220935375f98Sopenharmony_ci    UNITY_UINT8 p2[] = {1, 8, 100, 2};
221035375f98Sopenharmony_ci    UNITY_UINT8 p3[] = {1, 50, 60, 70};
221135375f98Sopenharmony_ci
221235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p0, 1);
221335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p0, 4);
221435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
221535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p2, 3);
221635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p3, 1);
221735375f98Sopenharmony_ci}
221835375f98Sopenharmony_ci
221935375f98Sopenharmony_civoid testNotEqualUINT8Arrays1(void)
222035375f98Sopenharmony_ci{
222135375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 100, 127u};
222235375f98Sopenharmony_ci    unsigned char p1[] = {1, 8, 100, 255u};
222335375f98Sopenharmony_ci
222435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
222535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
222635375f98Sopenharmony_ci    VERIFY_FAILS_END
222735375f98Sopenharmony_ci}
222835375f98Sopenharmony_ci
222935375f98Sopenharmony_civoid testNotEqualUINT8Arrays2(void)
223035375f98Sopenharmony_ci{
223135375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 100, 127u};
223235375f98Sopenharmony_ci    unsigned char p1[] = {1, 8, 100, 255u};
223335375f98Sopenharmony_ci
223435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
223535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
223635375f98Sopenharmony_ci    VERIFY_FAILS_END
223735375f98Sopenharmony_ci}
223835375f98Sopenharmony_ci
223935375f98Sopenharmony_civoid testNotEqualUINT8Arrays3(void)
224035375f98Sopenharmony_ci{
224135375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 100, 127u};
224235375f98Sopenharmony_ci    unsigned char p1[] = {1, 8, 100, 255u};
224335375f98Sopenharmony_ci
224435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
224535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p1, 4);
224635375f98Sopenharmony_ci    VERIFY_FAILS_END
224735375f98Sopenharmony_ci}
224835375f98Sopenharmony_ci
224935375f98Sopenharmony_ci
225035375f98Sopenharmony_civoid testEqualUINT16Arrays(void)
225135375f98Sopenharmony_ci{
225235375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
225335375f98Sopenharmony_ci    unsigned short p1[] = {1, 8, 987, 65132u};
225435375f98Sopenharmony_ci    unsigned short p2[] = {1, 8, 987, 2};
225535375f98Sopenharmony_ci    unsigned short p3[] = {1, 500, 600, 700};
225635375f98Sopenharmony_ci
225735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p0, 1);
225835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p0, 4);
225935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
226035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p2, 3);
226135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p3, 1);
226235375f98Sopenharmony_ci}
226335375f98Sopenharmony_ci
226435375f98Sopenharmony_civoid testNotEqualUINT16Arrays1(void)
226535375f98Sopenharmony_ci{
226635375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
226735375f98Sopenharmony_ci    unsigned short p1[] = {1, 8, 987, 65131u};
226835375f98Sopenharmony_ci
226935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
227035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
227135375f98Sopenharmony_ci    VERIFY_FAILS_END
227235375f98Sopenharmony_ci}
227335375f98Sopenharmony_ci
227435375f98Sopenharmony_civoid testNotEqualUINT16Arrays2(void)
227535375f98Sopenharmony_ci{
227635375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
227735375f98Sopenharmony_ci    unsigned short p1[] = {2, 8, 987, 65132u};
227835375f98Sopenharmony_ci
227935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
228035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
228135375f98Sopenharmony_ci    VERIFY_FAILS_END
228235375f98Sopenharmony_ci}
228335375f98Sopenharmony_ci
228435375f98Sopenharmony_civoid testNotEqualUINT16Arrays3(void)
228535375f98Sopenharmony_ci{
228635375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
228735375f98Sopenharmony_ci    unsigned short p1[] = {1, 8, 986, 65132u};
228835375f98Sopenharmony_ci
228935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
229035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT16_ARRAY(p0, p1, 4);
229135375f98Sopenharmony_ci    VERIFY_FAILS_END
229235375f98Sopenharmony_ci}
229335375f98Sopenharmony_ci
229435375f98Sopenharmony_civoid testEqualUINT32Arrays(void)
229535375f98Sopenharmony_ci{
229635375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
229735375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
229835375f98Sopenharmony_ci    UNITY_UINT32 p2[] = {1, 8, 987, 2};
229935375f98Sopenharmony_ci    UNITY_UINT32 p3[] = {1, 500, 600, 700};
230035375f98Sopenharmony_ci
230135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p0, 1);
230235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p0, 4);
230335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
230435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p2, 3);
230535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p3, 1);
230635375f98Sopenharmony_ci}
230735375f98Sopenharmony_ci
230835375f98Sopenharmony_civoid testNotEqualUINT32Arrays1(void)
230935375f98Sopenharmony_ci{
231035375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
231135375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
231235375f98Sopenharmony_ci
231335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
231435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
231535375f98Sopenharmony_ci    VERIFY_FAILS_END
231635375f98Sopenharmony_ci}
231735375f98Sopenharmony_ci
231835375f98Sopenharmony_civoid testNotEqualUINT32Arrays2(void)
231935375f98Sopenharmony_ci{
232035375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
232135375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
232235375f98Sopenharmony_ci
232335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
232435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
232535375f98Sopenharmony_ci    VERIFY_FAILS_END
232635375f98Sopenharmony_ci}
232735375f98Sopenharmony_ci
232835375f98Sopenharmony_civoid testNotEqualUINT32Arrays3(void)
232935375f98Sopenharmony_ci{
233035375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
233135375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
233235375f98Sopenharmony_ci
233335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
233435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
233535375f98Sopenharmony_ci    VERIFY_FAILS_END
233635375f98Sopenharmony_ci}
233735375f98Sopenharmony_ci
233835375f98Sopenharmony_civoid testEqualHEXArrays(void)
233935375f98Sopenharmony_ci{
234035375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
234135375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
234235375f98Sopenharmony_ci    UNITY_UINT32 p2[] = {1, 8, 987, 2};
234335375f98Sopenharmony_ci    UNITY_UINT32 p3[] = {1, 500, 600, 700};
234435375f98Sopenharmony_ci
234535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p0, 1);
234635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p0, 4);
234735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p1, 4);
234835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p2, 3);
234935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p3, 1);
235035375f98Sopenharmony_ci}
235135375f98Sopenharmony_ci
235235375f98Sopenharmony_civoid testNotEqualHEXArrays1(void)
235335375f98Sopenharmony_ci{
235435375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
235535375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
235635375f98Sopenharmony_ci
235735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
235835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
235935375f98Sopenharmony_ci    VERIFY_FAILS_END
236035375f98Sopenharmony_ci}
236135375f98Sopenharmony_ci
236235375f98Sopenharmony_civoid testNotEqualHEXArrays2(void)
236335375f98Sopenharmony_ci{
236435375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
236535375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
236635375f98Sopenharmony_ci
236735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
236835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
236935375f98Sopenharmony_ci    VERIFY_FAILS_END
237035375f98Sopenharmony_ci}
237135375f98Sopenharmony_ci
237235375f98Sopenharmony_civoid testNotEqualHEXArrays3(void)
237335375f98Sopenharmony_ci{
237435375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
237535375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
237635375f98Sopenharmony_ci
237735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
237835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p1, 4);
237935375f98Sopenharmony_ci    VERIFY_FAILS_END
238035375f98Sopenharmony_ci}
238135375f98Sopenharmony_ci
238235375f98Sopenharmony_civoid testEqualHEX32Arrays(void)
238335375f98Sopenharmony_ci{
238435375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
238535375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
238635375f98Sopenharmony_ci    UNITY_UINT32 p2[] = {1, 8, 987, 2};
238735375f98Sopenharmony_ci    UNITY_UINT32 p3[] = {1, 500, 600, 700};
238835375f98Sopenharmony_ci
238935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p0, 1);
239035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p0, 4);
239135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
239235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p2, 3);
239335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p3, 1);
239435375f98Sopenharmony_ci}
239535375f98Sopenharmony_ci
239635375f98Sopenharmony_civoid testNotEqualHEX32Arrays1(void)
239735375f98Sopenharmony_ci{
239835375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
239935375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
240035375f98Sopenharmony_ci
240135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
240235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
240335375f98Sopenharmony_ci    VERIFY_FAILS_END
240435375f98Sopenharmony_ci}
240535375f98Sopenharmony_ci
240635375f98Sopenharmony_civoid testNotEqualHEX32Arrays2(void)
240735375f98Sopenharmony_ci{
240835375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
240935375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
241035375f98Sopenharmony_ci
241135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
241235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
241335375f98Sopenharmony_ci    VERIFY_FAILS_END
241435375f98Sopenharmony_ci}
241535375f98Sopenharmony_ci
241635375f98Sopenharmony_civoid testNotEqualHEX32Arrays3(void)
241735375f98Sopenharmony_ci{
241835375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
241935375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
242035375f98Sopenharmony_ci
242135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
242235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
242335375f98Sopenharmony_ci    VERIFY_FAILS_END
242435375f98Sopenharmony_ci}
242535375f98Sopenharmony_ci
242635375f98Sopenharmony_civoid testEqualHEX16Arrays(void)
242735375f98Sopenharmony_ci{
242835375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
242935375f98Sopenharmony_ci    unsigned short p1[] = {1, 8, 987, 65132u};
243035375f98Sopenharmony_ci    unsigned short p2[] = {1, 8, 987, 2};
243135375f98Sopenharmony_ci    unsigned short p3[] = {1, 500, 600, 700};
243235375f98Sopenharmony_ci
243335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p0, 1);
243435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p0, 4);
243535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
243635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p2, 3);
243735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p3, 1);
243835375f98Sopenharmony_ci}
243935375f98Sopenharmony_ci
244035375f98Sopenharmony_civoid testNotEqualHEX16Arrays1(void)
244135375f98Sopenharmony_ci{
244235375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
244335375f98Sopenharmony_ci    unsigned short p1[] = {1, 8, 987, 65131u};
244435375f98Sopenharmony_ci
244535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
244635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
244735375f98Sopenharmony_ci    VERIFY_FAILS_END
244835375f98Sopenharmony_ci}
244935375f98Sopenharmony_ci
245035375f98Sopenharmony_civoid testNotEqualHEX16Arrays2(void)
245135375f98Sopenharmony_ci{
245235375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
245335375f98Sopenharmony_ci    unsigned short p1[] = {2, 8, 987, 65132u};
245435375f98Sopenharmony_ci
245535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
245635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
245735375f98Sopenharmony_ci    VERIFY_FAILS_END
245835375f98Sopenharmony_ci}
245935375f98Sopenharmony_ci
246035375f98Sopenharmony_civoid testNotEqualHEX16Arrays3(void)
246135375f98Sopenharmony_ci{
246235375f98Sopenharmony_ci    unsigned short p0[] = {1, 8, 987, 65132u};
246335375f98Sopenharmony_ci    unsigned short p1[] = {1, 8, 986, 65132u};
246435375f98Sopenharmony_ci
246535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
246635375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX16_ARRAY(p0, p1, 4);
246735375f98Sopenharmony_ci    VERIFY_FAILS_END
246835375f98Sopenharmony_ci}
246935375f98Sopenharmony_ci
247035375f98Sopenharmony_civoid testEqualHEX8Arrays(void)
247135375f98Sopenharmony_ci{
247235375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 254u, 123};
247335375f98Sopenharmony_ci    unsigned char p1[] = {1, 8, 254u, 123};
247435375f98Sopenharmony_ci    unsigned char p2[] = {1, 8, 254u, 2};
247535375f98Sopenharmony_ci    unsigned char p3[] = {1, 23, 25, 26};
247635375f98Sopenharmony_ci
247735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p0, 1);
247835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p0, 4);
247935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
248035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p2, 3);
248135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p3, 1);
248235375f98Sopenharmony_ci}
248335375f98Sopenharmony_ci
248435375f98Sopenharmony_civoid testNotEqualHEX8Arrays1(void)
248535375f98Sopenharmony_ci{
248635375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 254u, 253u};
248735375f98Sopenharmony_ci    unsigned char p1[] = {1, 8, 254u, 252u};
248835375f98Sopenharmony_ci
248935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
249035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
249135375f98Sopenharmony_ci    VERIFY_FAILS_END
249235375f98Sopenharmony_ci}
249335375f98Sopenharmony_ci
249435375f98Sopenharmony_civoid testNotEqualHEX8Arrays2(void)
249535375f98Sopenharmony_ci{
249635375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 254u, 253u};
249735375f98Sopenharmony_ci    unsigned char p1[] = {2, 8, 254u, 253u};
249835375f98Sopenharmony_ci
249935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
250035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
250135375f98Sopenharmony_ci    VERIFY_FAILS_END
250235375f98Sopenharmony_ci}
250335375f98Sopenharmony_ci
250435375f98Sopenharmony_civoid testNotEqualHEX8Arrays3(void)
250535375f98Sopenharmony_ci{
250635375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 254u, 253u};
250735375f98Sopenharmony_ci    unsigned char p1[] = {1, 8, 255u, 253u};
250835375f98Sopenharmony_ci
250935375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
251035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX8_ARRAY(p0, p1, 4);
251135375f98Sopenharmony_ci    VERIFY_FAILS_END
251235375f98Sopenharmony_ci}
251335375f98Sopenharmony_ci
251435375f98Sopenharmony_civoid testEqualUINT8EachEqual(void)
251535375f98Sopenharmony_ci{
251635375f98Sopenharmony_ci    UNITY_UINT8 p0[] = {127u, 127u, 127u, 127u};
251735375f98Sopenharmony_ci    UNITY_UINT8 p1[] = {1u, 1u, 1u, 1u};
251835375f98Sopenharmony_ci    UNITY_UINT8 p2[] = {128u, 128u, 128u, 2u};
251935375f98Sopenharmony_ci    UNITY_UINT8 p3[] = {1u, 50u, 60u, 70u};
252035375f98Sopenharmony_ci
252135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(127u, p0, 1);
252235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(127u, p0, 4);
252335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(1u, p1, 4);
252435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(128u, p2, 3);
252535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(1u, p3, 1);
252635375f98Sopenharmony_ci}
252735375f98Sopenharmony_ci
252835375f98Sopenharmony_civoid testNotEqualUINT8EachEqual1(void)
252935375f98Sopenharmony_ci{
253035375f98Sopenharmony_ci    unsigned char p0[] = {127u, 127u, 128u, 127u};
253135375f98Sopenharmony_ci
253235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
253335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(127u, p0, 4);
253435375f98Sopenharmony_ci    VERIFY_FAILS_END
253535375f98Sopenharmony_ci}
253635375f98Sopenharmony_ci
253735375f98Sopenharmony_civoid testNotEqualUINT8EachEqual2(void)
253835375f98Sopenharmony_ci{
253935375f98Sopenharmony_ci    unsigned char p0[] = {1, 1, 1, 127u};
254035375f98Sopenharmony_ci
254135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
254235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(1, p0, 4);
254335375f98Sopenharmony_ci    VERIFY_FAILS_END
254435375f98Sopenharmony_ci}
254535375f98Sopenharmony_ci
254635375f98Sopenharmony_civoid testNotEqualUINT8EachEqual3(void)
254735375f98Sopenharmony_ci{
254835375f98Sopenharmony_ci    unsigned char p0[] = {54u, 55u, 55u, 55u};
254935375f98Sopenharmony_ci
255035375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
255135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT8(55u, p0, 4);
255235375f98Sopenharmony_ci    VERIFY_FAILS_END
255335375f98Sopenharmony_ci}
255435375f98Sopenharmony_ci
255535375f98Sopenharmony_civoid testEqualUINT16EachEqual(void)
255635375f98Sopenharmony_ci{
255735375f98Sopenharmony_ci    unsigned short p0[] = {65132u, 65132u, 65132u, 65132u};
255835375f98Sopenharmony_ci    unsigned short p1[] = {987, 987, 987, 987};
255935375f98Sopenharmony_ci    unsigned short p2[] = {1, 1, 1, 2};
256035375f98Sopenharmony_ci    unsigned short p3[] = {1, 500, 600, 700};
256135375f98Sopenharmony_ci
256235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 1);
256335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
256435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(987, p1, 4);
256535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(1, p2, 3);
256635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(1, p3, 1);
256735375f98Sopenharmony_ci}
256835375f98Sopenharmony_ci
256935375f98Sopenharmony_civoid testNotEqualUINT16EachEqual1(void)
257035375f98Sopenharmony_ci{
257135375f98Sopenharmony_ci    unsigned short p0[] = {1, 65132u, 65132u, 65132u};
257235375f98Sopenharmony_ci
257335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
257435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
257535375f98Sopenharmony_ci    VERIFY_FAILS_END
257635375f98Sopenharmony_ci}
257735375f98Sopenharmony_ci
257835375f98Sopenharmony_civoid testNotEqualUINT16EachEqual2(void)
257935375f98Sopenharmony_ci{
258035375f98Sopenharmony_ci    unsigned short p0[] = {65132u, 65132u, 987, 65132u};
258135375f98Sopenharmony_ci
258235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
258335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
258435375f98Sopenharmony_ci    VERIFY_FAILS_END
258535375f98Sopenharmony_ci}
258635375f98Sopenharmony_ci
258735375f98Sopenharmony_civoid testNotEqualUINT16EachEqual3(void)
258835375f98Sopenharmony_ci{
258935375f98Sopenharmony_ci    unsigned short p0[] = {65132u, 65132u, 65132u, 65133u};
259035375f98Sopenharmony_ci
259135375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
259235375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT16(65132u, p0, 4);
259335375f98Sopenharmony_ci    VERIFY_FAILS_END
259435375f98Sopenharmony_ci}
259535375f98Sopenharmony_ci
259635375f98Sopenharmony_civoid testEqualUINT32EachEqual(void)
259735375f98Sopenharmony_ci{
259835375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {65132u, 65132u, 65132u, 65132u};
259935375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {987, 987, 987, 987};
260035375f98Sopenharmony_ci    UNITY_UINT32 p2[] = {8, 8, 8, 2};
260135375f98Sopenharmony_ci    UNITY_UINT32 p3[] = {1, 500, 600, 700};
260235375f98Sopenharmony_ci
260335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(65132u, p0, 1);
260435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(65132u, p0, 4);
260535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(987, p1, 4);
260635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(8, p2, 3);
260735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(1, p3, 1);
260835375f98Sopenharmony_ci}
260935375f98Sopenharmony_ci
261035375f98Sopenharmony_civoid testNotEqualUINT32EachEqual1(void)
261135375f98Sopenharmony_ci{
261235375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {65132u, 65132u, 987, 65132u};
261335375f98Sopenharmony_ci
261435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
261535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(65132u, p0, 4);
261635375f98Sopenharmony_ci    VERIFY_FAILS_END
261735375f98Sopenharmony_ci}
261835375f98Sopenharmony_ci
261935375f98Sopenharmony_civoid testNotEqualUINT32EachEqual2(void)
262035375f98Sopenharmony_ci{
262135375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 987, 987, 987};
262235375f98Sopenharmony_ci
262335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
262435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(987, p0, 4);
262535375f98Sopenharmony_ci    VERIFY_FAILS_END
262635375f98Sopenharmony_ci}
262735375f98Sopenharmony_ci
262835375f98Sopenharmony_civoid testNotEqualUINT32EachEqual3(void)
262935375f98Sopenharmony_ci{
263035375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 1, 1, 65132u};
263135375f98Sopenharmony_ci
263235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
263335375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_UINT32(1, p0, 4);
263435375f98Sopenharmony_ci    VERIFY_FAILS_END
263535375f98Sopenharmony_ci}
263635375f98Sopenharmony_ci
263735375f98Sopenharmony_civoid testEqualHEXEachEqual(void)
263835375f98Sopenharmony_ci{
263935375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {65132u, 65132u, 65132u, 65132u};
264035375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {987, 987, 987, 987};
264135375f98Sopenharmony_ci    UNITY_UINT32 p2[] = {8, 8, 8, 2};
264235375f98Sopenharmony_ci    UNITY_UINT32 p3[] = {1, 500, 600, 700};
264335375f98Sopenharmony_ci
264435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX(65132u, p0, 1);
264535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX(65132u, p0, 4);
264635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX(987, p1, 4);
264735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX(8, p2, 3);
264835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX(1, p3, 1);
264935375f98Sopenharmony_ci}
265035375f98Sopenharmony_ci
265135375f98Sopenharmony_civoid testNotEqualHEXEachEqual1(void)
265235375f98Sopenharmony_ci{
265335375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 65132u, 65132u, 65132u};
265435375f98Sopenharmony_ci
265535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
265635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 4);
265735375f98Sopenharmony_ci    VERIFY_FAILS_END
265835375f98Sopenharmony_ci}
265935375f98Sopenharmony_ci
266035375f98Sopenharmony_civoid testNotEqualHEXEachEqual2(void)
266135375f98Sopenharmony_ci{
266235375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {987, 987, 987, 65132u};
266335375f98Sopenharmony_ci
266435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
266535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(987, p0, 4);
266635375f98Sopenharmony_ci    VERIFY_FAILS_END
266735375f98Sopenharmony_ci}
266835375f98Sopenharmony_ci
266935375f98Sopenharmony_civoid testNotEqualHEXEachEqual3(void)
267035375f98Sopenharmony_ci{
267135375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {8, 8, 987, 8};
267235375f98Sopenharmony_ci
267335375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
267435375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX(8, p0, 4);
267535375f98Sopenharmony_ci    VERIFY_FAILS_END
267635375f98Sopenharmony_ci}
267735375f98Sopenharmony_ci
267835375f98Sopenharmony_civoid testEqualHEX32EachEqual(void)
267935375f98Sopenharmony_ci{
268035375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {65132u, 65132u, 65132u, 65132u};
268135375f98Sopenharmony_ci    UNITY_UINT32 p1[] = {987, 987, 987, 987};
268235375f98Sopenharmony_ci    UNITY_UINT32 p2[] = {8, 8, 8, 2};
268335375f98Sopenharmony_ci    UNITY_UINT32 p3[] = {1, 500, 600, 700};
268435375f98Sopenharmony_ci
268535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 1);
268635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 4);
268735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(987, p1, 4);
268835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(8, p2, 3);
268935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(1, p3, 1);
269035375f98Sopenharmony_ci}
269135375f98Sopenharmony_ci
269235375f98Sopenharmony_civoid testNotEqualHEX32EachEqual1(void)
269335375f98Sopenharmony_ci{
269435375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {65132u, 8, 65132u, 65132u};
269535375f98Sopenharmony_ci
269635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
269735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(65132u, p0, 4);
269835375f98Sopenharmony_ci    VERIFY_FAILS_END
269935375f98Sopenharmony_ci}
270035375f98Sopenharmony_ci
270135375f98Sopenharmony_civoid testNotEqualHEX32EachEqual2(void)
270235375f98Sopenharmony_ci{
270335375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {1, 987, 987, 987};
270435375f98Sopenharmony_ci
270535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
270635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(987, p0, 4);
270735375f98Sopenharmony_ci    VERIFY_FAILS_END
270835375f98Sopenharmony_ci}
270935375f98Sopenharmony_ci
271035375f98Sopenharmony_civoid testNotEqualHEX32EachEqual3(void)
271135375f98Sopenharmony_ci{
271235375f98Sopenharmony_ci    UNITY_UINT32 p0[] = {8, 8, 8, 65132u};
271335375f98Sopenharmony_ci
271435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
271535375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX32(8, p0, 4);
271635375f98Sopenharmony_ci    VERIFY_FAILS_END
271735375f98Sopenharmony_ci}
271835375f98Sopenharmony_ci
271935375f98Sopenharmony_civoid testEqualHEX16EachEqual(void)
272035375f98Sopenharmony_ci{
272135375f98Sopenharmony_ci    UNITY_UINT16 p0[] = {65132u, 65132u, 65132u, 65132u};
272235375f98Sopenharmony_ci    UNITY_UINT16 p1[] = {987, 987, 987, 987};
272335375f98Sopenharmony_ci    UNITY_UINT16 p2[] = {8, 8, 8, 2};
272435375f98Sopenharmony_ci    UNITY_UINT16 p3[] = {1, 500, 600, 700};
272535375f98Sopenharmony_ci
272635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(65132u, p0, 1);
272735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(65132u, p0, 4);
272835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(987, p1, 4);
272935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(8, p2, 3);
273035375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(1, p3, 1);
273135375f98Sopenharmony_ci}
273235375f98Sopenharmony_ci
273335375f98Sopenharmony_civoid testNotEqualHEX16EachEqual1(void)
273435375f98Sopenharmony_ci{
273535375f98Sopenharmony_ci    unsigned short p0[] = {65132u, 65132u, 987, 65132u};
273635375f98Sopenharmony_ci
273735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
273835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(65132u, p0, 4);
273935375f98Sopenharmony_ci    VERIFY_FAILS_END
274035375f98Sopenharmony_ci}
274135375f98Sopenharmony_ci
274235375f98Sopenharmony_civoid testNotEqualHEX16EachEqual2(void)
274335375f98Sopenharmony_ci{
274435375f98Sopenharmony_ci    unsigned short p0[] = {1, 987, 987, 987};
274535375f98Sopenharmony_ci
274635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
274735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(987, p0, 4);
274835375f98Sopenharmony_ci    VERIFY_FAILS_END
274935375f98Sopenharmony_ci}
275035375f98Sopenharmony_ci
275135375f98Sopenharmony_civoid testNotEqualHEX16EachEqual3(void)
275235375f98Sopenharmony_ci{
275335375f98Sopenharmony_ci    unsigned short p0[] = {8, 8, 8, 65132u};
275435375f98Sopenharmony_ci
275535375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
275635375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX16(8, p0, 4);
275735375f98Sopenharmony_ci    VERIFY_FAILS_END
275835375f98Sopenharmony_ci}
275935375f98Sopenharmony_ci
276035375f98Sopenharmony_civoid testEqualHEX8EachEqual(void)
276135375f98Sopenharmony_ci{
276235375f98Sopenharmony_ci    unsigned char p0[] = {254u, 254u, 254u, 254u};
276335375f98Sopenharmony_ci    unsigned char p1[] = {123, 123, 123, 123};
276435375f98Sopenharmony_ci    unsigned char p2[] = {8, 8, 8, 2};
276535375f98Sopenharmony_ci    unsigned char p3[] = {1, 23, 25, 26};
276635375f98Sopenharmony_ci
276735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(254u, p0, 1);
276835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(254u, p0, 4);
276935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(123, p1, 4);
277035375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(8, p2, 3);
277135375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(1, p3, 1);
277235375f98Sopenharmony_ci}
277335375f98Sopenharmony_ci
277435375f98Sopenharmony_civoid testNotEqualHEX8EachEqual1(void)
277535375f98Sopenharmony_ci{
277635375f98Sopenharmony_ci    unsigned char p0[] = {253u, 253u, 254u, 253u};
277735375f98Sopenharmony_ci
277835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
277935375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(253u, p0, 4);
278035375f98Sopenharmony_ci    VERIFY_FAILS_END
278135375f98Sopenharmony_ci}
278235375f98Sopenharmony_ci
278335375f98Sopenharmony_civoid testNotEqualHEX8EachEqual2(void)
278435375f98Sopenharmony_ci{
278535375f98Sopenharmony_ci    unsigned char p0[] = {254u, 254u, 254u, 253u};
278635375f98Sopenharmony_ci
278735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
278835375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(254u, p0, 4);
278935375f98Sopenharmony_ci    VERIFY_FAILS_END
279035375f98Sopenharmony_ci}
279135375f98Sopenharmony_ci
279235375f98Sopenharmony_civoid testNotEqualHEX8EachEqual3(void)
279335375f98Sopenharmony_ci{
279435375f98Sopenharmony_ci    unsigned char p0[] = {1, 8, 8, 8};
279535375f98Sopenharmony_ci
279635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
279735375f98Sopenharmony_ci    TEST_ASSERT_EACH_EQUAL_HEX8(8, p0, 4);
279835375f98Sopenharmony_ci    VERIFY_FAILS_END
279935375f98Sopenharmony_ci}
280035375f98Sopenharmony_ci
280135375f98Sopenharmony_civoid testEqualHEX64Arrays(void)
280235375f98Sopenharmony_ci{
280335375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
280435375f98Sopenharmony_ci    TEST_IGNORE();
280535375f98Sopenharmony_ci#else
280635375f98Sopenharmony_ci    UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
280735375f98Sopenharmony_ci    UNITY_UINT64 p1[] = {1, 8, 987, 65132u};
280835375f98Sopenharmony_ci    UNITY_UINT64 p2[] = {1, 8, 987, 2};
280935375f98Sopenharmony_ci    UNITY_UINT64 p3[] = {1, 500, 600, 700};
281035375f98Sopenharmony_ci
281135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p0, 1);
281235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p0, 4);
281335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
281435375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p2, 3);
281535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p3, 1);
281635375f98Sopenharmony_ci#endif
281735375f98Sopenharmony_ci}
281835375f98Sopenharmony_ci
281935375f98Sopenharmony_civoid testEqualUint64Arrays(void)
282035375f98Sopenharmony_ci{
282135375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
282235375f98Sopenharmony_ci    TEST_IGNORE();
282335375f98Sopenharmony_ci#else
282435375f98Sopenharmony_ci    UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
282535375f98Sopenharmony_ci    UNITY_UINT64 p1[] = {1, 8, 987, 65132u};
282635375f98Sopenharmony_ci    UNITY_UINT64 p2[] = {1, 8, 987, 2};
282735375f98Sopenharmony_ci    UNITY_UINT64 p3[] = {1, 500, 600, 700};
282835375f98Sopenharmony_ci
282935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p0, 1);
283035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p0, 4);
283135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p1, 4);
283235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p2, 3);
283335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p3, 1);
283435375f98Sopenharmony_ci#endif
283535375f98Sopenharmony_ci}
283635375f98Sopenharmony_ci
283735375f98Sopenharmony_civoid testEqualInt64Arrays(void)
283835375f98Sopenharmony_ci{
283935375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
284035375f98Sopenharmony_ci    TEST_IGNORE();
284135375f98Sopenharmony_ci#else
284235375f98Sopenharmony_ci    UNITY_INT64 p0[] = {1, 8, 987, -65132};
284335375f98Sopenharmony_ci    UNITY_INT64 p1[] = {1, 8, 987, -65132};
284435375f98Sopenharmony_ci    UNITY_INT64 p2[] = {1, 8, 987, -2};
284535375f98Sopenharmony_ci    UNITY_INT64 p3[] = {1, 500, 600, 700};
284635375f98Sopenharmony_ci
284735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p0, 1);
284835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p0, 4);
284935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p1, 4);
285035375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p2, 3);
285135375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p3, 1);
285235375f98Sopenharmony_ci#endif
285335375f98Sopenharmony_ci}
285435375f98Sopenharmony_ci
285535375f98Sopenharmony_ci
285635375f98Sopenharmony_civoid testNotEqualHEX64Arrays1(void)
285735375f98Sopenharmony_ci{
285835375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
285935375f98Sopenharmony_ci    TEST_IGNORE();
286035375f98Sopenharmony_ci#else
286135375f98Sopenharmony_ci    UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
286235375f98Sopenharmony_ci    UNITY_UINT64 p1[] = {1, 8, 987, 65131u};
286335375f98Sopenharmony_ci
286435375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
286535375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
286635375f98Sopenharmony_ci    VERIFY_FAILS_END
286735375f98Sopenharmony_ci#endif
286835375f98Sopenharmony_ci}
286935375f98Sopenharmony_ci
287035375f98Sopenharmony_civoid testNotEqualHEX64Arrays2(void)
287135375f98Sopenharmony_ci{
287235375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
287335375f98Sopenharmony_ci    TEST_IGNORE();
287435375f98Sopenharmony_ci#else
287535375f98Sopenharmony_ci    UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
287635375f98Sopenharmony_ci    UNITY_UINT64 p1[] = {2, 8, 987, 65132u};
287735375f98Sopenharmony_ci
287835375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
287935375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
288035375f98Sopenharmony_ci    VERIFY_FAILS_END
288135375f98Sopenharmony_ci#endif
288235375f98Sopenharmony_ci}
288335375f98Sopenharmony_ci
288435375f98Sopenharmony_civoid testNotEqualUint64Arrays(void)
288535375f98Sopenharmony_ci{
288635375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
288735375f98Sopenharmony_ci    TEST_IGNORE();
288835375f98Sopenharmony_ci#else
288935375f98Sopenharmony_ci    UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
289035375f98Sopenharmony_ci    UNITY_UINT64 p1[] = {1, 8, 987, 65131u};
289135375f98Sopenharmony_ci
289235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
289335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p1, 4);
289435375f98Sopenharmony_ci    VERIFY_FAILS_END
289535375f98Sopenharmony_ci#endif
289635375f98Sopenharmony_ci}
289735375f98Sopenharmony_ci
289835375f98Sopenharmony_civoid testNotEqualInt64Arrays(void)
289935375f98Sopenharmony_ci{
290035375f98Sopenharmony_ci#ifndef UNITY_SUPPORT_64
290135375f98Sopenharmony_ci    TEST_IGNORE();
290235375f98Sopenharmony_ci#else
290335375f98Sopenharmony_ci    UNITY_INT64 p0[] = {1, 8, 987, -65132};
290435375f98Sopenharmony_ci    UNITY_INT64 p1[] = {1, 8, 987, -65131};
290535375f98Sopenharmony_ci
290635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
290735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p1, 4);
290835375f98Sopenharmony_ci    VERIFY_FAILS_END
290935375f98Sopenharmony_ci#endif
291035375f98Sopenharmony_ci}
291135375f98Sopenharmony_ci
291235375f98Sopenharmony_civoid testVerifyIntPassingPointerComparisonOnZeroLengthArray(void)
291335375f98Sopenharmony_ci{
291435375f98Sopenharmony_ci    int a[] = { 1 };
291535375f98Sopenharmony_ci
291635375f98Sopenharmony_ci#ifndef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
291735375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
291835375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(a, a, 0);
291935375f98Sopenharmony_ci    VERIFY_FAILS_END
292035375f98Sopenharmony_ci#else
292135375f98Sopenharmony_ci
292235375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(a, a, 0);
292335375f98Sopenharmony_ci#endif
292435375f98Sopenharmony_ci}
292535375f98Sopenharmony_ci
292635375f98Sopenharmony_civoid testVerifyIntFailingPointerComparisonOnZeroLengthArray(void)
292735375f98Sopenharmony_ci{
292835375f98Sopenharmony_ci    int a[] = { 1 };
292935375f98Sopenharmony_ci    int b[] = { 1 };
293035375f98Sopenharmony_ci
293135375f98Sopenharmony_ci#ifndef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
293235375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
293335375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(a, b, 0);
293435375f98Sopenharmony_ci    VERIFY_FAILS_END
293535375f98Sopenharmony_ci#else
293635375f98Sopenharmony_ci    EXPECT_ABORT_BEGIN
293735375f98Sopenharmony_ci    TEST_ASSERT_EQUAL_INT_ARRAY(a, b, 0);
293835375f98Sopenharmony_ci    VERIFY_FAILS_END
293935375f98Sopenharmony_ci#endif
294035375f98Sopenharmony_ci}
2941