]> pd.if.org Git - pdclib.old/blobdiff - testing/fprintf_reftest.incl
Some cleanups and corrected typos.
[pdclib.old] / testing / fprintf_reftest.incl
diff --git a/testing/fprintf_reftest.incl b/testing/fprintf_reftest.incl
deleted file mode 100644 (file)
index 3c6ae4b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-    {
-    char readbuffer[2000];
-    char refbuffer[2000];
-    size_t readcounter;
-    TESTCASE( ( target = fopen( testfile, "r" ) ) != NULL );
-    readcounter = fread( readbuffer, 1, 2000, target );
-    TESTCASE( fclose( target ) == 0 );
-    TESTCASE( ( target = fopen( "testing/printf_reference.txt", "r" ) ) != NULL );
-    TESTCASE( fread( refbuffer, 1, 2000, target ) == readcounter );
-    TESTCASE( fclose( target ) == 0 );
-    TESTCASE( memcmp( readbuffer, refbuffer, readcounter ) == 0 );
-    }