diff options
Diffstat (limited to 'tests/assertions.c')
-rw-r--r-- | tests/assertions.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/assertions.c b/tests/assertions.c index fa7e82d..0e14a2b 100644 --- a/tests/assertions.c +++ b/tests/assertions.c @@ -30,7 +30,7 @@ const char *test_assert_msg() _lily_globals.error_msg = NULL; _lily_globals.error_location = ""; val = setjmp(_lily_globals.env); - + if (passed_thru == 0) { passed_thru = 1; // another line that you SHOULD NOT MOVE! @@ -110,7 +110,7 @@ const char *test_assert_false() const char *test_assert_not_null() { int a = 5; - + int val = setjmp(_lily_globals.env); if (val != 0) return "true assertion failed incorrectly!"; @@ -123,7 +123,7 @@ const char *test_assert_not_null() val = setjmp(_lily_globals.env); int *ptr = NULL; - + if (passed_thru == 0) { passed_thru = 1; lily_assert_not_null(ptr); @@ -143,7 +143,7 @@ const char *test_assert_null() { int a = 5; int *ptr = NULL; - + int val = setjmp(_lily_globals.env); if (val != 0) return "true assertion failed incorrectly!"; @@ -177,7 +177,7 @@ const char *test_assert_ptr_equal() int a = 0; int b = 0; int *ptr = &a; - + int val = setjmp(_lily_globals.env); if (val != 0) return "true assertion failed incorrectly!"; @@ -212,7 +212,7 @@ const char *test_assert_ptr_not_equal() int a = 0; int b = 0; int *ptr = &b; - + int val = setjmp(_lily_globals.env); if (val != 0) return "true assertion failed incorrectly!"; |