ceedling 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ceedling +6 -1
- data/docs/CeedlingPacket.md +9 -0
- data/lib/ceedling/generator.rb +2 -2
- data/lib/ceedling/generator_test_runner.rb +32 -1
- data/lib/ceedling/rakefile.rb +1 -1
- data/lib/ceedling/system_wrapper.rb +13 -10
- data/lib/ceedling/tool_executor.rb +2 -2
- data/lib/ceedling/version.rb +1 -1
- data/plugins/command_hooks/README.md +52 -0
- data/plugins/command_hooks/lib/command_hooks.rb +71 -0
- data/plugins/module_generator/lib/module_generator.rb +10 -4
- data/plugins/module_generator/module_generator.rake +2 -2
- data/spec/spec_system_helper.rb +16 -11
- data/spec/system/deployment_spec.rb +2 -2
- data/vendor/c_exception/vendor/unity/auto/generate_module.rb +77 -34
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +1 -1
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +2 -2
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +3 -3
- data/vendor/c_exception/vendor/unity/src/unity.c +105 -105
- data/vendor/c_exception/vendor/unity/src/unity.h +8 -8
- data/vendor/c_exception/vendor/unity/src/unity_internals.h +139 -139
- data/vendor/c_exception/vendor/unity/test/tests/testunity.c +141 -142
- data/vendor/cmock/lib/cmock_generator.rb +2 -1
- data/vendor/cmock/test/c/TestCMockC.c +1 -1
- data/vendor/cmock/test/system/test_interactions/unity_64bit_support.yml +13 -13
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +4 -2
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_module.rb +77 -34
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +1 -1
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +2 -2
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +3 -3
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.c +105 -105
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.h +8 -8
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity_internals.h +139 -139
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/testunity.c +141 -142
- data/vendor/cmock/vendor/unity/auto/generate_module.rb +77 -34
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +1 -1
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +2 -2
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +3 -3
- data/vendor/cmock/vendor/unity/src/unity.c +105 -105
- data/vendor/cmock/vendor/unity/src/unity.h +8 -8
- data/vendor/cmock/vendor/unity/src/unity_internals.h +139 -139
- data/vendor/cmock/vendor/unity/test/tests/testunity.c +141 -142
- data/vendor/unity/auto/generate_module.rb +77 -34
- data/vendor/unity/extras/fixture/src/unity_fixture.c +1 -1
- data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +2 -2
- data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +3 -3
- data/vendor/unity/src/unity.c +105 -105
- data/vendor/unity/src/unity.h +8 -8
- data/vendor/unity/src/unity_internals.h +139 -139
- data/vendor/unity/test/tests/testunity.c +141 -142
- metadata +4 -2
@@ -11,11 +11,11 @@
|
|
11
11
|
// Dividing by these constants produces +/- infinity.
|
12
12
|
// The rationale is given in UnityAssertFloatIsInf's body.
|
13
13
|
#ifndef UNITY_EXCLUDE_FLOAT
|
14
|
-
static const
|
14
|
+
static const UNITY_FLOAT f_zero = 0.0f;
|
15
15
|
#endif
|
16
16
|
|
17
17
|
#ifndef UNITY_EXCLUDE_DOUBLE
|
18
|
-
static const
|
18
|
+
static const UNITY_DOUBLE d_zero = 0.0;
|
19
19
|
#endif
|
20
20
|
|
21
21
|
#define EXPECT_ABORT_BEGIN \
|
@@ -53,7 +53,6 @@ static const _UD d_zero = 0.0;
|
|
53
53
|
void startPutcharSpy(void);
|
54
54
|
void endPutcharSpy(void);
|
55
55
|
char* getBufferPutcharSpy(void);
|
56
|
-
void putcharSpy(int c);
|
57
56
|
|
58
57
|
static int SetToOneToFailInTearDown;
|
59
58
|
static int SetToOneMeanWeAlreadyCheckedThisGuy;
|
@@ -77,14 +76,14 @@ void tearDown(void)
|
|
77
76
|
|
78
77
|
void testUnitySizeInitializationReminder(void)
|
79
78
|
{
|
80
|
-
/* This test ensures that sizeof(struct
|
79
|
+
/* This test ensures that sizeof(struct UNITY_STORAGE_T) doesn't change. If this
|
81
80
|
* test breaks, go look at the initialization of the Unity global variable
|
82
81
|
* in unity.c and make sure we're filling in the proper fields. */
|
83
|
-
const char* message = "Unexpected size for
|
82
|
+
const char* message = "Unexpected size for UNITY_STORAGE_T struct. Please check that "
|
84
83
|
"the initialization of the Unity symbol in unity.c is "
|
85
84
|
"still correct.";
|
86
85
|
|
87
|
-
/* Define a structure with all the same fields as `struct
|
86
|
+
/* Define a structure with all the same fields as `struct UNITY_STORAGE_T`. */
|
88
87
|
#ifdef UNITY_EXCLUDE_DETAILS
|
89
88
|
struct {
|
90
89
|
const char* TestFile;
|
@@ -268,7 +267,7 @@ void testNotEqualBits(void)
|
|
268
267
|
|
269
268
|
void testNotEqualUInts(void)
|
270
269
|
{
|
271
|
-
|
270
|
+
UNITY_UINT16 v0, v1;
|
272
271
|
|
273
272
|
v0 = 9000;
|
274
273
|
v1 = 9001;
|
@@ -280,7 +279,7 @@ void testNotEqualUInts(void)
|
|
280
279
|
|
281
280
|
void testNotEqualUInt8s(void)
|
282
281
|
{
|
283
|
-
|
282
|
+
UNITY_UINT8 v0, v1;
|
284
283
|
|
285
284
|
v0 = 254;
|
286
285
|
v1 = 255;
|
@@ -292,7 +291,7 @@ void testNotEqualUInt8s(void)
|
|
292
291
|
|
293
292
|
void testNotEqualUInt16s(void)
|
294
293
|
{
|
295
|
-
|
294
|
+
UNITY_UINT16 v0, v1;
|
296
295
|
|
297
296
|
v0 = 65535;
|
298
297
|
v1 = 65534;
|
@@ -304,7 +303,7 @@ void testNotEqualUInt16s(void)
|
|
304
303
|
|
305
304
|
void testNotEqualUInt32s(void)
|
306
305
|
{
|
307
|
-
|
306
|
+
UNITY_UINT32 v0, v1;
|
308
307
|
|
309
308
|
v0 = 4294967295;
|
310
309
|
v1 = 4294967294;
|
@@ -316,7 +315,7 @@ void testNotEqualUInt32s(void)
|
|
316
315
|
|
317
316
|
void testNotEqualHex8s(void)
|
318
317
|
{
|
319
|
-
|
318
|
+
UNITY_UINT8 v0, v1;
|
320
319
|
|
321
320
|
v0 = 0x23;
|
322
321
|
v1 = 0x22;
|
@@ -328,7 +327,7 @@ void testNotEqualHex8s(void)
|
|
328
327
|
|
329
328
|
void testNotEqualHex8sIfSigned(void)
|
330
329
|
{
|
331
|
-
|
330
|
+
UNITY_INT8 v0, v1;
|
332
331
|
|
333
332
|
v0 = -2;
|
334
333
|
v1 = 2;
|
@@ -340,7 +339,7 @@ void testNotEqualHex8sIfSigned(void)
|
|
340
339
|
|
341
340
|
void testNotEqualHex16s(void)
|
342
341
|
{
|
343
|
-
|
342
|
+
UNITY_UINT16 v0, v1;
|
344
343
|
|
345
344
|
v0 = 0x1234;
|
346
345
|
v1 = 0x1235;
|
@@ -352,7 +351,7 @@ void testNotEqualHex16s(void)
|
|
352
351
|
|
353
352
|
void testNotEqualHex16sIfSigned(void)
|
354
353
|
{
|
355
|
-
|
354
|
+
UNITY_INT16 v0, v1;
|
356
355
|
|
357
356
|
v0 = -1024;
|
358
357
|
v1 = -1028;
|
@@ -364,7 +363,7 @@ void testNotEqualHex16sIfSigned(void)
|
|
364
363
|
|
365
364
|
void testNotEqualHex32s(void)
|
366
365
|
{
|
367
|
-
|
366
|
+
UNITY_UINT32 v0, v1;
|
368
367
|
|
369
368
|
v0 = 900000;
|
370
369
|
v1 = 900001;
|
@@ -376,7 +375,7 @@ void testNotEqualHex32s(void)
|
|
376
375
|
|
377
376
|
void testNotEqualHex32sIfSigned(void)
|
378
377
|
{
|
379
|
-
|
378
|
+
UNITY_INT32 v0, v1;
|
380
379
|
|
381
380
|
v0 = -900000;
|
382
381
|
v1 = 900001;
|
@@ -408,8 +407,8 @@ void testEqualInts(void)
|
|
408
407
|
|
409
408
|
void testEqualInt8s(void)
|
410
409
|
{
|
411
|
-
|
412
|
-
|
410
|
+
UNITY_INT8 v0, v1;
|
411
|
+
UNITY_INT8 *p0, *p1;
|
413
412
|
|
414
413
|
v0 = 0x22;
|
415
414
|
v1 = 0x22;
|
@@ -433,8 +432,8 @@ void testEqualInt8sWhenThereAreDifferencesOutside8Bits(void)
|
|
433
432
|
|
434
433
|
void testEqualInt16s(void)
|
435
434
|
{
|
436
|
-
|
437
|
-
|
435
|
+
UNITY_INT16 v0, v1;
|
436
|
+
UNITY_INT16 *p0, *p1;
|
438
437
|
|
439
438
|
v0 = 0x7876;
|
440
439
|
v1 = 0x7876;
|
@@ -452,8 +451,8 @@ void testEqualInt16s(void)
|
|
452
451
|
|
453
452
|
void testEqualInt16sNegatives(void)
|
454
453
|
{
|
455
|
-
|
456
|
-
|
454
|
+
UNITY_INT16 v0, v1;
|
455
|
+
UNITY_INT16 *p0, *p1;
|
457
456
|
|
458
457
|
v0 = -7876;
|
459
458
|
v1 = -7876;
|
@@ -477,8 +476,8 @@ void testEqualInt16sWhenThereAreDifferencesOutside16Bits(void)
|
|
477
476
|
|
478
477
|
void testEqualInt32s(void)
|
479
478
|
{
|
480
|
-
|
481
|
-
|
479
|
+
UNITY_INT32 v0, v1;
|
480
|
+
UNITY_INT32 *p0, *p1;
|
482
481
|
|
483
482
|
v0 = 0x78760000;
|
484
483
|
v1 = 0x78760000;
|
@@ -496,8 +495,8 @@ void testEqualInt32s(void)
|
|
496
495
|
|
497
496
|
void testEqualInt32sNegatives(void)
|
498
497
|
{
|
499
|
-
|
500
|
-
|
498
|
+
UNITY_INT32 v0, v1;
|
499
|
+
UNITY_INT32 *p0, *p1;
|
501
500
|
|
502
501
|
v0 = -123456789;
|
503
502
|
v1 = -123456789;
|
@@ -537,8 +536,8 @@ void testEqualUints(void)
|
|
537
536
|
|
538
537
|
void testEqualUint8s(void)
|
539
538
|
{
|
540
|
-
|
541
|
-
|
539
|
+
UNITY_UINT8 v0, v1;
|
540
|
+
UNITY_UINT8 *p0, *p1;
|
542
541
|
|
543
542
|
v0 = 0x22;
|
544
543
|
v1 = 0x22;
|
@@ -562,8 +561,8 @@ void testEqualUint8sWhenThereAreDifferencesOutside8Bits(void)
|
|
562
561
|
|
563
562
|
void testEqualUint16s(void)
|
564
563
|
{
|
565
|
-
|
566
|
-
|
564
|
+
UNITY_UINT16 v0, v1;
|
565
|
+
UNITY_UINT16 *p0, *p1;
|
567
566
|
|
568
567
|
v0 = 0x9876;
|
569
568
|
v1 = 0x9876;
|
@@ -587,8 +586,8 @@ void testEqualUint16sWhenThereAreDifferencesOutside16Bits(void)
|
|
587
586
|
|
588
587
|
void testEqualUint32s(void)
|
589
588
|
{
|
590
|
-
|
591
|
-
|
589
|
+
UNITY_UINT32 v0, v1;
|
590
|
+
UNITY_UINT32 *p0, *p1;
|
592
591
|
|
593
592
|
v0 = 0x98760000;
|
594
593
|
v1 = 0x98760000;
|
@@ -617,8 +616,8 @@ void testNotEqual(void)
|
|
617
616
|
|
618
617
|
void testEqualHex8s(void)
|
619
618
|
{
|
620
|
-
|
621
|
-
|
619
|
+
UNITY_UINT8 v0, v1;
|
620
|
+
UNITY_UINT8 *p0, *p1;
|
622
621
|
|
623
622
|
v0 = 0x22;
|
624
623
|
v1 = 0x22;
|
@@ -642,8 +641,8 @@ void testEqualHex8sWhenThereAreDifferencesOutside8Bits(void)
|
|
642
641
|
|
643
642
|
void testEqualHex8sNegatives(void)
|
644
643
|
{
|
645
|
-
|
646
|
-
|
644
|
+
UNITY_UINT8 v0, v1;
|
645
|
+
UNITY_UINT8 *p0, *p1;
|
647
646
|
|
648
647
|
v0 = 0xDD;
|
649
648
|
v1 = 0xDD;
|
@@ -661,8 +660,8 @@ void testEqualHex8sNegatives(void)
|
|
661
660
|
|
662
661
|
void testEqualHex16s(void)
|
663
662
|
{
|
664
|
-
|
665
|
-
|
663
|
+
UNITY_UINT16 v0, v1;
|
664
|
+
UNITY_UINT16 *p0, *p1;
|
666
665
|
|
667
666
|
v0 = 0x9876;
|
668
667
|
v1 = 0x9876;
|
@@ -686,8 +685,8 @@ void testEqualHex16sWhenThereAreDifferencesOutside16Bits(void)
|
|
686
685
|
|
687
686
|
void testEqualHex32s(void)
|
688
687
|
{
|
689
|
-
|
690
|
-
|
688
|
+
UNITY_UINT32 v0, v1;
|
689
|
+
UNITY_UINT32 *p0, *p1;
|
691
690
|
|
692
691
|
v0 = 0x98765432ul;
|
693
692
|
v1 = 0x98765432ul;
|
@@ -705,8 +704,8 @@ void testEqualHex32s(void)
|
|
705
704
|
|
706
705
|
void testEqualBits(void)
|
707
706
|
{
|
708
|
-
|
709
|
-
|
707
|
+
UNITY_UINT32 v0 = 0xFF55AA00;
|
708
|
+
UNITY_UINT32 v1 = 0x55550000;
|
710
709
|
|
711
710
|
TEST_ASSERT_BITS(v1, v0, 0x55550000);
|
712
711
|
TEST_ASSERT_BITS(v1, v0, 0xFF55CC00);
|
@@ -721,7 +720,7 @@ void testEqualBits(void)
|
|
721
720
|
|
722
721
|
void testNotEqualBitHigh(void)
|
723
722
|
{
|
724
|
-
|
723
|
+
UNITY_UINT32 v0 = 0x7F55AA00;
|
725
724
|
|
726
725
|
EXPECT_ABORT_BEGIN
|
727
726
|
TEST_ASSERT_BIT_HIGH(31, v0);
|
@@ -730,7 +729,7 @@ void testNotEqualBitHigh(void)
|
|
730
729
|
|
731
730
|
void testNotEqualBitLow(void)
|
732
731
|
{
|
733
|
-
|
732
|
+
UNITY_UINT32 v0 = 0xFF55AA00;
|
734
733
|
|
735
734
|
EXPECT_ABORT_BEGIN
|
736
735
|
TEST_ASSERT_BIT_LOW(30, v0);
|
@@ -739,8 +738,8 @@ void testNotEqualBitLow(void)
|
|
739
738
|
|
740
739
|
void testNotEqualBitsHigh(void)
|
741
740
|
{
|
742
|
-
|
743
|
-
|
741
|
+
UNITY_UINT32 v0 = 0xFF55AA00;
|
742
|
+
UNITY_UINT32 v1 = 0x55550000;
|
744
743
|
|
745
744
|
EXPECT_ABORT_BEGIN
|
746
745
|
TEST_ASSERT_BITS_HIGH(v0, v1);
|
@@ -750,8 +749,8 @@ void testNotEqualBitsHigh(void)
|
|
750
749
|
|
751
750
|
void testNotEqualBitsLow(void)
|
752
751
|
{
|
753
|
-
|
754
|
-
|
752
|
+
UNITY_UINT32 v0 = 0xFF55AA00;
|
753
|
+
UNITY_UINT32 v1 = 0x55550000;
|
755
754
|
|
756
755
|
EXPECT_ABORT_BEGIN
|
757
756
|
TEST_ASSERT_BITS_LOW(v0, v1);
|
@@ -1625,8 +1624,8 @@ void testNotEqualIntArrays3(void)
|
|
1625
1624
|
|
1626
1625
|
void testNotEqualIntArraysLengthZero(void)
|
1627
1626
|
{
|
1628
|
-
|
1629
|
-
|
1627
|
+
UNITY_UINT32 p0[1] = {1};
|
1628
|
+
UNITY_UINT32 p1[1] = {1};
|
1630
1629
|
|
1631
1630
|
EXPECT_ABORT_BEGIN
|
1632
1631
|
TEST_ASSERT_EQUAL_INT_ARRAY(p0, p1, 0);
|
@@ -1715,10 +1714,10 @@ void testNotEqualPtrArrays3(void)
|
|
1715
1714
|
|
1716
1715
|
void testEqualInt8Arrays(void)
|
1717
1716
|
{
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1717
|
+
UNITY_INT8 p0[] = {1, 8, 117, -2};
|
1718
|
+
UNITY_INT8 p1[] = {1, 8, 117, -2};
|
1719
|
+
UNITY_INT8 p2[] = {1, 8, 117, 2};
|
1720
|
+
UNITY_INT8 p3[] = {1, 50, 60, 70};
|
1722
1721
|
|
1723
1722
|
TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p0, 1);
|
1724
1723
|
TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p0, 4);
|
@@ -1729,8 +1728,8 @@ void testEqualInt8Arrays(void)
|
|
1729
1728
|
|
1730
1729
|
void testNotEqualInt8Arrays(void)
|
1731
1730
|
{
|
1732
|
-
|
1733
|
-
|
1731
|
+
UNITY_INT8 p0[] = {1, 8, 36, -2};
|
1732
|
+
UNITY_INT8 p1[] = {1, 8, 36, 2};
|
1734
1733
|
|
1735
1734
|
EXPECT_ABORT_BEGIN
|
1736
1735
|
TEST_ASSERT_EQUAL_INT8_ARRAY(p0, p1, 4);
|
@@ -1783,10 +1782,10 @@ void testNotEqualUIntArrays3(void)
|
|
1783
1782
|
|
1784
1783
|
void testEqualInt16Arrays(void)
|
1785
1784
|
{
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1785
|
+
UNITY_INT16 p0[] = {1, 8, 117, 3};
|
1786
|
+
UNITY_INT16 p1[] = {1, 8, 117, 3};
|
1787
|
+
UNITY_INT16 p2[] = {1, 8, 117, 2};
|
1788
|
+
UNITY_INT16 p3[] = {1, 50, 60, 70};
|
1790
1789
|
|
1791
1790
|
TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p0, 1);
|
1792
1791
|
TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p0, 4);
|
@@ -1797,8 +1796,8 @@ void testEqualInt16Arrays(void)
|
|
1797
1796
|
|
1798
1797
|
void testNotEqualInt16Arrays(void)
|
1799
1798
|
{
|
1800
|
-
|
1801
|
-
|
1799
|
+
UNITY_INT16 p0[] = {1, 8, 127, 3};
|
1800
|
+
UNITY_INT16 p1[] = {1, 8, 127, 2};
|
1802
1801
|
|
1803
1802
|
EXPECT_ABORT_BEGIN
|
1804
1803
|
TEST_ASSERT_EQUAL_INT16_ARRAY(p0, p1, 4);
|
@@ -1807,10 +1806,10 @@ void testNotEqualInt16Arrays(void)
|
|
1807
1806
|
|
1808
1807
|
void testEqualInt32Arrays(void)
|
1809
1808
|
{
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1809
|
+
UNITY_INT32 p0[] = {1, 8, 117, 3};
|
1810
|
+
UNITY_INT32 p1[] = {1, 8, 117, 3};
|
1811
|
+
UNITY_INT32 p2[] = {1, 8, 117, 2};
|
1812
|
+
UNITY_INT32 p3[] = {1, 50, 60, 70};
|
1814
1813
|
|
1815
1814
|
TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p0, 1);
|
1816
1815
|
TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p0, 4);
|
@@ -1821,8 +1820,8 @@ void testEqualInt32Arrays(void)
|
|
1821
1820
|
|
1822
1821
|
void testNotEqualInt32Arrays(void)
|
1823
1822
|
{
|
1824
|
-
|
1825
|
-
|
1823
|
+
UNITY_INT32 p0[] = {1, 8, 127, 3};
|
1824
|
+
UNITY_INT32 p1[] = {1, 8, 127, 2};
|
1826
1825
|
|
1827
1826
|
EXPECT_ABORT_BEGIN
|
1828
1827
|
TEST_ASSERT_EQUAL_INT32_ARRAY(p0, p1, 4);
|
@@ -1831,10 +1830,10 @@ void testNotEqualInt32Arrays(void)
|
|
1831
1830
|
|
1832
1831
|
void testEqualUINT8Arrays(void)
|
1833
1832
|
{
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1833
|
+
UNITY_UINT8 p0[] = {1, 8, 100, 127};
|
1834
|
+
UNITY_UINT8 p1[] = {1, 8, 100, 127};
|
1835
|
+
UNITY_UINT8 p2[] = {1, 8, 100, 2};
|
1836
|
+
UNITY_UINT8 p3[] = {1, 50, 60, 70};
|
1838
1837
|
|
1839
1838
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p0, 1);
|
1840
1839
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(p0, p0, 4);
|
@@ -1920,10 +1919,10 @@ void testNotEqualUINT16Arrays3(void)
|
|
1920
1919
|
|
1921
1920
|
void testEqualUINT32Arrays(void)
|
1922
1921
|
{
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1922
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
1923
|
+
UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
|
1924
|
+
UNITY_UINT32 p2[] = {1, 8, 987, 2};
|
1925
|
+
UNITY_UINT32 p3[] = {1, 500, 600, 700};
|
1927
1926
|
|
1928
1927
|
TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p0, 1);
|
1929
1928
|
TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p0, 4);
|
@@ -1934,8 +1933,8 @@ void testEqualUINT32Arrays(void)
|
|
1934
1933
|
|
1935
1934
|
void testNotEqualUINT32Arrays1(void)
|
1936
1935
|
{
|
1937
|
-
|
1938
|
-
|
1936
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
1937
|
+
UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
|
1939
1938
|
|
1940
1939
|
EXPECT_ABORT_BEGIN
|
1941
1940
|
TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
|
@@ -1944,8 +1943,8 @@ void testNotEqualUINT32Arrays1(void)
|
|
1944
1943
|
|
1945
1944
|
void testNotEqualUINT32Arrays2(void)
|
1946
1945
|
{
|
1947
|
-
|
1948
|
-
|
1946
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
1947
|
+
UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
|
1949
1948
|
|
1950
1949
|
EXPECT_ABORT_BEGIN
|
1951
1950
|
TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
|
@@ -1954,8 +1953,8 @@ void testNotEqualUINT32Arrays2(void)
|
|
1954
1953
|
|
1955
1954
|
void testNotEqualUINT32Arrays3(void)
|
1956
1955
|
{
|
1957
|
-
|
1958
|
-
|
1956
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
1957
|
+
UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
|
1959
1958
|
|
1960
1959
|
EXPECT_ABORT_BEGIN
|
1961
1960
|
TEST_ASSERT_EQUAL_UINT32_ARRAY(p0, p1, 4);
|
@@ -1964,10 +1963,10 @@ void testNotEqualUINT32Arrays3(void)
|
|
1964
1963
|
|
1965
1964
|
void testEqualHEXArrays(void)
|
1966
1965
|
{
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1966
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
1967
|
+
UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
|
1968
|
+
UNITY_UINT32 p2[] = {1, 8, 987, 2};
|
1969
|
+
UNITY_UINT32 p3[] = {1, 500, 600, 700};
|
1971
1970
|
|
1972
1971
|
TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p0, 1);
|
1973
1972
|
TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p0, 4);
|
@@ -1978,8 +1977,8 @@ void testEqualHEXArrays(void)
|
|
1978
1977
|
|
1979
1978
|
void testNotEqualHEXArrays1(void)
|
1980
1979
|
{
|
1981
|
-
|
1982
|
-
|
1980
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
1981
|
+
UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
|
1983
1982
|
|
1984
1983
|
EXPECT_ABORT_BEGIN
|
1985
1984
|
TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
|
@@ -1988,8 +1987,8 @@ void testNotEqualHEXArrays1(void)
|
|
1988
1987
|
|
1989
1988
|
void testNotEqualHEXArrays2(void)
|
1990
1989
|
{
|
1991
|
-
|
1992
|
-
|
1990
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
1991
|
+
UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
|
1993
1992
|
|
1994
1993
|
EXPECT_ABORT_BEGIN
|
1995
1994
|
TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
|
@@ -1998,8 +1997,8 @@ void testNotEqualHEXArrays2(void)
|
|
1998
1997
|
|
1999
1998
|
void testNotEqualHEXArrays3(void)
|
2000
1999
|
{
|
2001
|
-
|
2002
|
-
|
2000
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
2001
|
+
UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
|
2003
2002
|
|
2004
2003
|
EXPECT_ABORT_BEGIN
|
2005
2004
|
TEST_ASSERT_EQUAL_HEX_ARRAY(p0, p1, 4);
|
@@ -2008,10 +2007,10 @@ void testNotEqualHEXArrays3(void)
|
|
2008
2007
|
|
2009
2008
|
void testEqualHEX32Arrays(void)
|
2010
2009
|
{
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2010
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
2011
|
+
UNITY_UINT32 p1[] = {1, 8, 987, 65132u};
|
2012
|
+
UNITY_UINT32 p2[] = {1, 8, 987, 2};
|
2013
|
+
UNITY_UINT32 p3[] = {1, 500, 600, 700};
|
2015
2014
|
|
2016
2015
|
TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p0, 1);
|
2017
2016
|
TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p0, 4);
|
@@ -2022,8 +2021,8 @@ void testEqualHEX32Arrays(void)
|
|
2022
2021
|
|
2023
2022
|
void testNotEqualHEX32Arrays1(void)
|
2024
2023
|
{
|
2025
|
-
|
2026
|
-
|
2024
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
2025
|
+
UNITY_UINT32 p1[] = {1, 8, 987, 65131u};
|
2027
2026
|
|
2028
2027
|
EXPECT_ABORT_BEGIN
|
2029
2028
|
TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
|
@@ -2032,8 +2031,8 @@ void testNotEqualHEX32Arrays1(void)
|
|
2032
2031
|
|
2033
2032
|
void testNotEqualHEX32Arrays2(void)
|
2034
2033
|
{
|
2035
|
-
|
2036
|
-
|
2034
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
2035
|
+
UNITY_UINT32 p1[] = {2, 8, 987, 65132u};
|
2037
2036
|
|
2038
2037
|
EXPECT_ABORT_BEGIN
|
2039
2038
|
TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
|
@@ -2042,8 +2041,8 @@ void testNotEqualHEX32Arrays2(void)
|
|
2042
2041
|
|
2043
2042
|
void testNotEqualHEX32Arrays3(void)
|
2044
2043
|
{
|
2045
|
-
|
2046
|
-
|
2044
|
+
UNITY_UINT32 p0[] = {1, 8, 987, 65132u};
|
2045
|
+
UNITY_UINT32 p1[] = {1, 8, 986, 65132u};
|
2047
2046
|
|
2048
2047
|
EXPECT_ABORT_BEGIN
|
2049
2048
|
TEST_ASSERT_EQUAL_HEX32_ARRAY(p0, p1, 4);
|
@@ -2310,8 +2309,8 @@ void testPrintNumbers32(void)
|
|
2310
2309
|
TEST_ASSERT_EQUAL_PRINT_NUMBERS("1", 1);
|
2311
2310
|
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-1", -1);
|
2312
2311
|
TEST_ASSERT_EQUAL_PRINT_NUMBERS("2000000000", 2000000000);
|
2313
|
-
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-2147483648", (
|
2314
|
-
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-1", (
|
2312
|
+
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-2147483648", (UNITY_INT32)0x80000000);
|
2313
|
+
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-1", (UNITY_INT32)0xFFFFFFFF);
|
2315
2314
|
#endif
|
2316
2315
|
}
|
2317
2316
|
|
@@ -2323,8 +2322,8 @@ void testPrintNumbersUnsigned32(void)
|
|
2323
2322
|
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("0", 0);
|
2324
2323
|
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("1", 1);
|
2325
2324
|
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("1500000000", 1500000000);
|
2326
|
-
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("2147483648", (
|
2327
|
-
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("4294967295", (
|
2325
|
+
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("2147483648", (UNITY_UINT32)0x80000000);
|
2326
|
+
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("4294967295", (UNITY_UINT32)0xFFFFFFFF);
|
2328
2327
|
#endif
|
2329
2328
|
}
|
2330
2329
|
|
@@ -2340,8 +2339,8 @@ void testPrintNumbersInt64(void)
|
|
2340
2339
|
#else
|
2341
2340
|
TEST_ASSERT_EQUAL_PRINT_NUMBERS("0", 0);
|
2342
2341
|
TEST_ASSERT_EQUAL_PRINT_NUMBERS("10000000000", 10000000000);
|
2343
|
-
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-9223372036854775808", (
|
2344
|
-
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-1", (
|
2342
|
+
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-9223372036854775808", (UNITY_INT)0x8000000000000000);
|
2343
|
+
TEST_ASSERT_EQUAL_PRINT_NUMBERS("-1", (UNITY_INT)0xFFFFFFFFFFFFFFFF);
|
2345
2344
|
#endif
|
2346
2345
|
#endif
|
2347
2346
|
}
|
@@ -2356,8 +2355,8 @@ void testPrintNumbersUInt64(void)
|
|
2356
2355
|
#else
|
2357
2356
|
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("0", 0);
|
2358
2357
|
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("70000000000", 70000000000);
|
2359
|
-
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("9223372036854775808", (
|
2360
|
-
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("18446744073709551615", (
|
2358
|
+
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("9223372036854775808", (UNITY_UINT)0x8000000000000000);
|
2359
|
+
TEST_ASSERT_EQUAL_PRINT_UNSIGNED_NUMBERS("18446744073709551615", (UNITY_UINT)0xFFFFFFFFFFFFFFFF);
|
2361
2360
|
#endif
|
2362
2361
|
#endif
|
2363
2362
|
}
|
@@ -2367,8 +2366,8 @@ void testEqualHex64s(void)
|
|
2367
2366
|
#ifndef UNITY_SUPPORT_64
|
2368
2367
|
TEST_IGNORE();
|
2369
2368
|
#else
|
2370
|
-
|
2371
|
-
|
2369
|
+
UNITY_UINT64 v0, v1;
|
2370
|
+
UNITY_UINT64 *p0, *p1;
|
2372
2371
|
|
2373
2372
|
v0 = 0x9876543201234567;
|
2374
2373
|
v1 = 0x9876543201234567;
|
@@ -2390,8 +2389,8 @@ void testEqualUint64s(void)
|
|
2390
2389
|
#ifndef UNITY_SUPPORT_64
|
2391
2390
|
TEST_IGNORE();
|
2392
2391
|
#else
|
2393
|
-
|
2394
|
-
|
2392
|
+
UNITY_UINT64 v0, v1;
|
2393
|
+
UNITY_UINT64 *p0, *p1;
|
2395
2394
|
|
2396
2395
|
v0 = 0x9876543201234567;
|
2397
2396
|
v1 = 0x9876543201234567;
|
@@ -2413,11 +2412,11 @@ void testEqualInt64s(void)
|
|
2413
2412
|
#ifndef UNITY_SUPPORT_64
|
2414
2413
|
TEST_IGNORE();
|
2415
2414
|
#else
|
2416
|
-
|
2417
|
-
|
2415
|
+
UNITY_INT64 v0, v1;
|
2416
|
+
UNITY_INT64 *p0, *p1;
|
2418
2417
|
|
2419
|
-
v0 = (
|
2420
|
-
v1 = (
|
2418
|
+
v0 = (UNITY_INT64)0x9876543201234567;
|
2419
|
+
v1 = (UNITY_INT64)0x9876543201234567;
|
2421
2420
|
p0 = &v0;
|
2422
2421
|
p1 = &v1;
|
2423
2422
|
|
@@ -2437,7 +2436,7 @@ void testNotEqualHex64s(void)
|
|
2437
2436
|
#ifndef UNITY_SUPPORT_64
|
2438
2437
|
TEST_IGNORE();
|
2439
2438
|
#else
|
2440
|
-
|
2439
|
+
UNITY_UINT64 v0, v1;
|
2441
2440
|
|
2442
2441
|
v0 = 9000000000;
|
2443
2442
|
v1 = 9100000000;
|
@@ -2453,7 +2452,7 @@ void testNotEqualUint64s(void)
|
|
2453
2452
|
#ifndef UNITY_SUPPORT_64
|
2454
2453
|
TEST_IGNORE();
|
2455
2454
|
#else
|
2456
|
-
|
2455
|
+
UNITY_UINT64 v0, v1;
|
2457
2456
|
|
2458
2457
|
v0 = 9000000000;
|
2459
2458
|
v1 = 9100000000;
|
@@ -2469,7 +2468,7 @@ void testNotEqualInt64s(void)
|
|
2469
2468
|
#ifndef UNITY_SUPPORT_64
|
2470
2469
|
TEST_IGNORE();
|
2471
2470
|
#else
|
2472
|
-
|
2471
|
+
UNITY_INT64 v0, v1;
|
2473
2472
|
|
2474
2473
|
v0 = -9000000000;
|
2475
2474
|
v1 = 9100000000;
|
@@ -2485,7 +2484,7 @@ void testNotEqualHex64sIfSigned(void)
|
|
2485
2484
|
#ifndef UNITY_SUPPORT_64
|
2486
2485
|
TEST_IGNORE();
|
2487
2486
|
#else
|
2488
|
-
|
2487
|
+
UNITY_INT64 v0, v1;
|
2489
2488
|
|
2490
2489
|
v0 = -9000000000;
|
2491
2490
|
v1 = 9000000000;
|
@@ -2600,10 +2599,10 @@ void testEqualHEX64Arrays(void)
|
|
2600
2599
|
#ifndef UNITY_SUPPORT_64
|
2601
2600
|
TEST_IGNORE();
|
2602
2601
|
#else
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
|
2602
|
+
UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
|
2603
|
+
UNITY_UINT64 p1[] = {1, 8, 987, 65132u};
|
2604
|
+
UNITY_UINT64 p2[] = {1, 8, 987, 2};
|
2605
|
+
UNITY_UINT64 p3[] = {1, 500, 600, 700};
|
2607
2606
|
|
2608
2607
|
TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p0, 1);
|
2609
2608
|
TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p0, 4);
|
@@ -2618,10 +2617,10 @@ void testEqualUint64Arrays(void)
|
|
2618
2617
|
#ifndef UNITY_SUPPORT_64
|
2619
2618
|
TEST_IGNORE();
|
2620
2619
|
#else
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2620
|
+
UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
|
2621
|
+
UNITY_UINT64 p1[] = {1, 8, 987, 65132u};
|
2622
|
+
UNITY_UINT64 p2[] = {1, 8, 987, 2};
|
2623
|
+
UNITY_UINT64 p3[] = {1, 500, 600, 700};
|
2625
2624
|
|
2626
2625
|
TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p0, 1);
|
2627
2626
|
TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p0, 4);
|
@@ -2636,10 +2635,10 @@ void testEqualInt64Arrays(void)
|
|
2636
2635
|
#ifndef UNITY_SUPPORT_64
|
2637
2636
|
TEST_IGNORE();
|
2638
2637
|
#else
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2638
|
+
UNITY_INT64 p0[] = {1, 8, 987, -65132};
|
2639
|
+
UNITY_INT64 p1[] = {1, 8, 987, -65132};
|
2640
|
+
UNITY_INT64 p2[] = {1, 8, 987, -2};
|
2641
|
+
UNITY_INT64 p3[] = {1, 500, 600, 700};
|
2643
2642
|
|
2644
2643
|
TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p0, 1);
|
2645
2644
|
TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p0, 4);
|
@@ -2655,8 +2654,8 @@ void testNotEqualHEX64Arrays1(void)
|
|
2655
2654
|
#ifndef UNITY_SUPPORT_64
|
2656
2655
|
TEST_IGNORE();
|
2657
2656
|
#else
|
2658
|
-
|
2659
|
-
|
2657
|
+
UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
|
2658
|
+
UNITY_UINT64 p1[] = {1, 8, 987, 65131u};
|
2660
2659
|
|
2661
2660
|
EXPECT_ABORT_BEGIN
|
2662
2661
|
TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
|
@@ -2669,8 +2668,8 @@ void testNotEqualHEX64Arrays2(void)
|
|
2669
2668
|
#ifndef UNITY_SUPPORT_64
|
2670
2669
|
TEST_IGNORE();
|
2671
2670
|
#else
|
2672
|
-
|
2673
|
-
|
2671
|
+
UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
|
2672
|
+
UNITY_UINT64 p1[] = {2, 8, 987, 65132u};
|
2674
2673
|
|
2675
2674
|
EXPECT_ABORT_BEGIN
|
2676
2675
|
TEST_ASSERT_EQUAL_HEX64_ARRAY(p0, p1, 4);
|
@@ -2683,8 +2682,8 @@ void testNotEqualUint64Arrays(void)
|
|
2683
2682
|
#ifndef UNITY_SUPPORT_64
|
2684
2683
|
TEST_IGNORE();
|
2685
2684
|
#else
|
2686
|
-
|
2687
|
-
|
2685
|
+
UNITY_UINT64 p0[] = {1, 8, 987, 65132u};
|
2686
|
+
UNITY_UINT64 p1[] = {1, 8, 987, 65131u};
|
2688
2687
|
|
2689
2688
|
EXPECT_ABORT_BEGIN
|
2690
2689
|
TEST_ASSERT_EQUAL_UINT64_ARRAY(p0, p1, 4);
|
@@ -2697,8 +2696,8 @@ void testNotEqualInt64Arrays(void)
|
|
2697
2696
|
#ifndef UNITY_SUPPORT_64
|
2698
2697
|
TEST_IGNORE();
|
2699
2698
|
#else
|
2700
|
-
|
2701
|
-
|
2699
|
+
UNITY_INT64 p0[] = {1, 8, 987, -65132};
|
2700
|
+
UNITY_INT64 p1[] = {1, 8, 987, -65131};
|
2702
2701
|
|
2703
2702
|
EXPECT_ABORT_BEGIN
|
2704
2703
|
TEST_ASSERT_EQUAL_INT64_ARRAY(p0, p1, 4);
|