Fix testing mechanism.

This commit is contained in:
James Goppert
2016-01-23 23:26:26 -05:00
parent 6009709986
commit 38211e1aff
17 changed files with 179 additions and 173 deletions
+12
View File
@@ -0,0 +1,12 @@
/**
* @file test_marcos.hpp
*
* Helps with cmake testing.
*
* @author James Goppert <james.goppert@gmail.com>
*/
#pragma once
#include <cstdio>
#define TEST(X) if(!(X)) { fprintf(stderr, "test failed on %s:%d\n", __FILE__, __LINE__); return -1;}