|
|
@@ -21,8 +21,8 @@ spec("data") { |
|
|
|
static IZ_List list; |
|
|
|
|
|
|
|
after_each() { |
|
|
|
mock_mode(IZ_free, IZ_FREE_CALLS_UNTRACKED); |
|
|
|
IZ_ListTeardown(&list); |
|
|
|
mock_reset(IZ_free); |
|
|
|
} |
|
|
|
|
|
|
|
it("sets root to NULL") { |
|
|
@@ -47,6 +47,8 @@ spec("data") { |
|
|
|
IZ_ListAppendNode(&list, &value1); |
|
|
|
IZ_ListAppendNode(&list, &value2); |
|
|
|
IZ_ListAppendNode(&list, &value3); |
|
|
|
|
|
|
|
mock_mode(IZ_free, IZ_FREE_CALLS_TRACKED); |
|
|
|
} |
|
|
|
|
|
|
|
after_each() { |
|
|
@@ -93,10 +95,12 @@ spec("data") { |
|
|
|
} |
|
|
|
|
|
|
|
after_each() { |
|
|
|
mock_mode(IZ_free, IZ_FREE_CALLS_UNTRACKED); |
|
|
|
IZ_ListTeardown(&list); |
|
|
|
} |
|
|
|
|
|
|
|
after_each() { |
|
|
|
mock_mode(IZ_free, IZ_FREE_CALLS_UNTRACKED); |
|
|
|
IZ_ListTeardown(&list2); |
|
|
|
} |
|
|
|
|
|
|
@@ -139,6 +143,7 @@ spec("data") { |
|
|
|
} |
|
|
|
|
|
|
|
after_each() { |
|
|
|
mock_mode(IZ_free, IZ_FREE_CALLS_UNTRACKED); |
|
|
|
IZ_ListTeardown(&list); |
|
|
|
} |
|
|
|
|
|
|
@@ -167,6 +172,8 @@ spec("data") { |
|
|
|
IZ_ListAppendNode(&list, &value1); |
|
|
|
IZ_ListAppendNode(&list, &value2); |
|
|
|
IZ_ListAppendNode(&list, &value3); |
|
|
|
|
|
|
|
mock_mode(IZ_free, IZ_FREE_CALLS_TRACKED); |
|
|
|
} |
|
|
|
|
|
|
|
after_each() { |
|
|
|