binary tree tests added
This commit is contained in:
16
tests/testutil.hpp
Normal file
16
tests/testutil.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <cstdio>
|
||||
|
||||
namespace Test
|
||||
{
|
||||
void Execute(bool (*testFunction)(void), char const * const message)
|
||||
{
|
||||
if(testFunction())
|
||||
{
|
||||
std::printf("[PASS] %s\n", message);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::printf("[FAIL] %s\n", message);
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user