]> pd.if.org Git - pdclib/blobdiff - testing/scan_test.h
Moved test-related files to testing subdirectory (i.e., out of the way).
[pdclib] / testing / scan_test.h
diff --git a/testing/scan_test.h b/testing/scan_test.h
new file mode 100644 (file)
index 0000000..9eae7c8
--- /dev/null
@@ -0,0 +1,16 @@
+/* $Id$ */
+
+/* scan test header
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <string.h>
+#include <limits.h>
+
+#define CHECK_TRUE( a ) TESTCASE( a != 0 )
+#define CHECK_FALSE( a ) TESTCASE( a == 0 )
+#define CHECK_EQUAL( a, b ) do { int x = a; int y = b; TESTCASE( x == y ); } while ( 0 )
+#define CHECK_FEQUAL( a, b, T, F ) do { T x = a; T y = b; TESTCASE( x == y ); } while ( 0 )
+