]> pd.if.org Git - pdclib/commitdiff
Declarating include and testdriver added.
authorsolar <unknown>
Wed, 24 May 2006 06:13:37 +0000 (06:13 +0000)
committersolar <unknown>
Wed, 24 May 2006 06:13:37 +0000 (06:13 +0000)
functions/_PDCLIB/Xdigits.c
functions/_PDCLIB/digits.c

index cca46074725f64827721ac2c26fe93eddc77be1c..7568474248e90b78857d10ac88b9a961dfd41886 100644 (file)
@@ -6,14 +6,22 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
+#ifndef _PDCLIB_INT_H
+#define _PDCLIB_INT_H _PDCLIB_INT_H
+#include <_PDCLIB_int.h>
+#endif
+
 char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
 
 #ifdef TEST
+#include <_PDCLIB_test.h>
+
+#include <string.h>
 
 int main( void )
 {
-    /* no tests for raw data */
-    return 0;
+    TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 );
+    return TEST_RESULTS;
 }
 
 #endif
index 6f360646f65514c66a2c8859724edf3f3b676c47..751ac0852edbf71ee64a3abeebdcafa18d979940 100644 (file)
@@ -6,14 +6,22 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
+#ifndef _PDCLIB_INT_H
+#define _PDCLIB_INT_H _PDCLIB_INT_H
+#include <_PDCLIB_int.h>
+#endif
+
 char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
 
 #ifdef TEST
+#include <_PDCLIB_test.h>
+
+#include <string.h>
 
 int main( void )
 {
-    /* no tests for raw data */
-    return 0;
+    TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 );
+    return TEST_RESULTS;
 }
 
 #endif