put each test in separate scope to avoid redefinition
This commit is contained in:
parent
5443eeb7b9
commit
39e3b16568
1 changed files with 15 additions and 13 deletions
|
@ -32,6 +32,7 @@
|
|||
}
|
||||
|
||||
#define TEST(name, ...) \
|
||||
{\
|
||||
uint asserts_failed = 0;\
|
||||
uint asserts_total = 0;\
|
||||
tests_total += 1;\
|
||||
|
@ -45,4 +46,5 @@
|
|||
<< "\n";\
|
||||
if (asserts_failed > 0) {\
|
||||
tests_failed += 1;\
|
||||
}\
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue