summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-22 00:14:15 +0100
committerFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-22 00:14:15 +0100
commita7a070371bcc10d0dbf94e503650856ac37ed81d (patch)
tree7b2e5968b623d15947bc0537a4ff64a385119f68 /test.c
parent33b3d80c2dcd12dbf692984e0d736bfa9906a8b5 (diff)
add reading from files, add quote shorthand (')
Diffstat (limited to 'test.c')
-rw-r--r--test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test.c b/test.c
index 9dfe8c6..8622fe3 100644
--- a/test.c
+++ b/test.c
@@ -10,14 +10,14 @@ static int tests_failed = 0;
env *global_env = NULL;
-#define ASSERT(cond, msg) do { \
- tests_run++; \
- if (!(cond)) { \
- tests_failed++; \
+#define ASSERT(cond, msg) do { \
+ tests_run++; \
+ if (!(cond)) { \
+ tests_failed++; \
printf("FAIL: %s\n", msg); \
- } else { \
+ } else { \
printf("PASS: %s\n", msg); \
- } \
+ } \
} while (0)
void test_make_int() {