major folder reorganisation, R pkg is now epclust/ at first level. Experimental usage...
[epclust.git] / old_C_code / stage1 / test / lut.h
diff --git a/old_C_code/stage1/test/lut.h b/old_C_code/stage1/test/lut.h
new file mode 100644 (file)
index 0000000..4e36e51
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef PPAM_LUT_H
+#define PPAM_LUT_H
+
+#include <stdio.h>
+
+// light, minimalist unit-testing "framework"
+
+#define LUT_ASSERT(condition)                                            \
+    do {                                                                 \
+        if ( !(condition) ) {                                            \
+            printf("Failure in file %s at line %i\n",__FILE__,__LINE__); \
+        }                                                                \
+    } while (0)
+
+#endif