Commit 36936922737796d01874e5f124e1255401438830

Thomas de Grivel 2023-04-12T17:30:07

TEST_CASE, TEST_CASE_END

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/test/test.h b/test/test.h
index e652b87..5d03611 100644
--- a/test/test.h
+++ b/test/test.h
@@ -31,6 +31,13 @@
     }                                                                  \
   } while(0)
 
+#define TEST_CASE(name)                                                \
+  void test_case_ ## name ()                                           \
+  {
+
+#define TEST_CASE_END(name)                                            \
+  }
+
 #define TEST_EQ(test, expected)                                        \
   do {                                                                 \
     long long signed TEST_EQ_tmp = (long long signed) (test);          \