diff options
| author | hachem <im@hachem.wtf> | 2026-10-12 11:41:05 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-10-12 11:41:05 +0200 |
| commit | 62636576bce8e8121a3d70f63547fae40a52f697 (patch) | |
| tree | 077dfe4f04235cce63b7abb1b05bb539232ae74a /tests/test.h | |
| parent | c0f000ea166a24781fcdbf23c080b203cd9b8ed7 (diff) | |
chore: refactor
Diffstat (limited to 'tests/test.h')
| -rw-r--r-- | tests/test.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/test.h b/tests/test.h deleted file mode 100644 index c5e2e73..0000000 --- a/tests/test.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include <stdio.h> - -struct TestContext -{ - int checks; - int failures; -}; - -#define check(context, condition) \ - do \ - { \ - (context)->checks += 1; \ - if (!(condition)) \ - { \ - (context)->failures += 1; \ - printf(" FAIL %s:%d: %s\n", __FILE__, __LINE__, #condition); \ - } \ - } \ - while (0) |
