X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=testing%2Fscan_test.h;fp=testing%2Fscan_test.h;h=9eae7c879884ee6a42f6c70f53764b75df18c30b;hb=4340db942a3f1dc39724c1f05264d38586bc062a;hp=0000000000000000000000000000000000000000;hpb=a5d97013d6b1e5c969572162db3049a47b497c4d;p=pdclib diff --git a/testing/scan_test.h b/testing/scan_test.h new file mode 100644 index 0000000..9eae7c8 --- /dev/null +++ b/testing/scan_test.h @@ -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 +#include + +#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 ) +