mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 19:23:56 +00:00
Prepare unittest support
This commit is contained in:
@@ -87,12 +87,12 @@ bool test_io()
|
||||
return text == buffer;
|
||||
}
|
||||
|
||||
#define RUN_TEST(func, name) \
|
||||
{ \
|
||||
#define RUN_TEST(func, name) \
|
||||
{ \
|
||||
printf("Running test '" name "': "); \
|
||||
const auto res = func(); \
|
||||
valid &= res; \
|
||||
puts(res ? "Sucess" : "Fail"); \
|
||||
const auto res = func(); \
|
||||
valid &= res; \
|
||||
puts(res ? "Sucess" : "Fail"); \
|
||||
}
|
||||
|
||||
int main(int /*argc*/, const char* /*argv*/[])
|
||||
|
||||
Reference in New Issue
Block a user