mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-06 11:17:50 +00:00
Updated code to match Unity’s latest naming conventions
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ void test_ThatCMockStopsReturningMoreDataWhenItRunsOutOfMemory(void)
|
||||
}
|
||||
|
||||
//there aren't any after that
|
||||
TEST_ASSERT_EQUAL_HEX(CMOCK_GUTS_NONE, (_UU32)next);
|
||||
TEST_ASSERT_EQUAL_HEX(CMOCK_GUTS_NONE, (UNITY_UINT32)next);
|
||||
}
|
||||
|
||||
void test_ThatCMockStopsReturningMoreDataWhenAskForMoreThanItHasLeftEvenIfNotAtExactEnd(void)
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
:systest:
|
||||
:types: |
|
||||
#include "unity_internals.h"
|
||||
typedef _UU64 TEST64;
|
||||
|
||||
typedef UNITY_UINT64 TEST64;
|
||||
|
||||
:mockable: |
|
||||
TEST64 foo(TEST64 a);
|
||||
TEST64* bar(TEST64* b);
|
||||
|
||||
:source:
|
||||
:header: |
|
||||
:source:
|
||||
:header: |
|
||||
TEST64 function_a(void);
|
||||
|
||||
:code: |
|
||||
@@ -23,17 +23,17 @@
|
||||
TEST64 a = 0x1234567890123456;
|
||||
TEST64 b;
|
||||
TEST64* c;
|
||||
|
||||
|
||||
b = foo(a);
|
||||
c = bar(&b);
|
||||
return *c;
|
||||
}
|
||||
|
||||
|
||||
:tests:
|
||||
:common: |
|
||||
void setUp(void) {}
|
||||
void tearDown(void) {}
|
||||
|
||||
|
||||
:units:
|
||||
- :pass: TRUE
|
||||
:should: 'handle a straightforward 64-bit series of calls'
|
||||
@@ -44,10 +44,10 @@
|
||||
TEST64 b = 0x5a5a5a5a5a5a5a5a;
|
||||
foo_ExpectAndReturn(0x1234567890123456, 0x0987654321543210);
|
||||
bar_ExpectAndReturn(&a, &b);
|
||||
|
||||
|
||||
TEST_ASSERT_EQUAL_HEX64(b, function_a());
|
||||
}
|
||||
|
||||
|
||||
- :pass: FALSE
|
||||
:should: 'handle a straightforward 64-bit series of calls with a failure'
|
||||
:code: |
|
||||
@@ -57,10 +57,10 @@
|
||||
TEST64 b = 0x5a5a5a5a5a5a5a5a;
|
||||
foo_ExpectAndReturn(0x1234567890123456, 0x0987654321543211);
|
||||
bar_ExpectAndReturn(&a, &b);
|
||||
|
||||
|
||||
TEST_ASSERT_EQUAL_HEX64(b, function_a());
|
||||
}
|
||||
|
||||
|
||||
- :pass: FALSE
|
||||
:should: 'handle a straightforward 64-bit series of calls returning a failure'
|
||||
:code: |
|
||||
@@ -70,8 +70,8 @@
|
||||
TEST64 b = 0x5a5a5a5a5a5a5a5a;
|
||||
foo_ExpectAndReturn(0x1234567890123456, 0x0987654321543210);
|
||||
bar_ExpectAndReturn(&a, &b);
|
||||
|
||||
|
||||
TEST_ASSERT_EQUAL_HEX64(b+1, function_a());
|
||||
}
|
||||
|
||||
|
||||
...
|
||||
|
||||
Vendored
+1
-1
Submodule vendor/c_exception updated: f23e15efb3...03e48c5033
Vendored
+1
-1
Submodule vendor/unity updated: ac455f2798...8e31f5d869
Reference in New Issue
Block a user