mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Basic tests infrastructure
This commit is contained in:
4
tests/CommonCxxTests.h
Normal file
4
tests/CommonCxxTests.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#include <cstdio>
|
||||
|
||||
#define ASSERT_EQ(a,b) { if (!(a == b)) { printf("Failed assertion: " #a " == " #b " \n in %s:%d\n", __FILE__, __LINE__); return 1; }}
|
||||
#define ASSERT_NE(a,b) { if (!(a != b)) { printf("Failed assertion: " #a " != " #b " \n in %s:%d\n", __FILE__, __LINE__); return 1; }}
|
Reference in New Issue
Block a user