aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.c
diff options
context:
space:
mode:
authorLion Kortlepel <[email protected]>2026-01-14 22:08:55 +0100
committerLion Kortlepel <[email protected]>2026-01-14 22:08:55 +0100
commitf93efff02151e4a3affa4b2d0031e957fe7553aa (patch)
tree806c714926848a98447d4fbc190c76ba891c0fd3 /tests/tests.c
downloadqueue-f93efff02151e4a3affa4b2d0031e957fe7553aa.tar.zst
queue-f93efff02151e4a3affa4b2d0031e957fe7553aa.zip
initial commit
Diffstat (limited to 'tests/tests.c')
-rw-r--r--tests/tests.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tests.c b/tests/tests.c
new file mode 100644
index 0000000..0d57df4
--- /dev/null
+++ b/tests/tests.c
@@ -0,0 +1,16 @@
+#define LS_TEST_IMPLEMENTATION
+#include "ls_test.h"
+
+int add(int a, int b) {
+ return a + b;
+}
+
+TEST_CASE(add) {
+ ASSERT_EQ(add(1, 2), 3, "%d");
+ ASSERT_EQ(add(2, 3), 5, "%d");
+ ASSERT_EQ(add(0, 0), 100000, "%d");
+
+ return 0;
+}
+
+TEST_MAIN