summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/assertions.c12
-rw-r--r--tests/main.c4
-rw-r--r--tests/mock_queue.c6
3 files changed, 11 insertions, 11 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!";
diff --git a/tests/main.c b/tests/main.c
index 84c8c09..1306502 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -9,7 +9,7 @@
int main()
{
lily_init();
-
+
run_test(test_LILY_LOCATION);
run_test(test_assert_msg);
run_test(test_assert_true);
@@ -25,6 +25,6 @@ int main()
run_test(test_mock_enqueue_dequeue_heterogenous);
run_test(test_LILY_NARGS);
run_test(test_lily_mock_call);
-
+
return 0;
}
diff --git a/tests/mock_queue.c b/tests/mock_queue.c
index b7f852c..493d397 100644
--- a/tests/mock_queue.c
+++ b/tests/mock_queue.c
@@ -6,7 +6,7 @@
const char* test_mock_enqueue_dequeue_int() {
- lily_queue_t *q = lily_queue_create();
+ lily_queue_t *q = lily_queue_create();
/* enqueue A259482, for no particular reason */
lily_enqueue(q, int, 2);
@@ -21,7 +21,7 @@ const char* test_mock_enqueue_dequeue_int() {
/* queue next value after already popping */
lily_enqueue(q, long, 1651377);
-
+
if (n != 6) return "dequeued incorrect second value";
lily_dequeue(q, int, &n);
if (n != 44) return "dequeued incorrect third value";
@@ -32,7 +32,7 @@ const char* test_mock_enqueue_dequeue_int() {
if (m != 1651377) return "dequeued incorrect fifth value";
lily_queue_destroy(q);
-
+
return 0;
}