X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fdigits.c;h=52a7ae38585a13978b8069bb3066a9a5bf193271;hb=219271fd548949abce8bd75c34dd42e519418fc4;hp=21a2b46ddf272425dd45b124d5ad29aa8e9aa8ba;hpb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;p=pdclib diff --git a/functions/_PDCLIB/digits.c b/functions/_PDCLIB/digits.c index 21a2b46..52a7ae3 100644 --- a/functions/_PDCLIB/digits.c +++ b/functions/_PDCLIB/digits.c @@ -1,21 +1,32 @@ /* $Id$ */ -/* Release $Name$ */ - /* _PDCLIB_digits This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ -char _PDCLIB_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; +#ifndef REGTEST +#include <_PDCLIB_int.h> +#endif + +char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; + +/* For _PDCLIB/print.c only; obsolete with ctype.h */ +char _PDCLIB_Xdigits[] = "0123456789ABCDEF"; #ifdef TEST +#include <_PDCLIB_test.h> + +#include int main( void ) { - /* no tests for raw data */ - return 0; +#ifndef REGTEST + TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 ); + TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 ); +#endif + return TEST_RESULTS; } #endif