* tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
which assume ASCII encoding semantics to run only in ASCII
mode, as they fail in EBCDIC.
2016-08-19 Daniel Richard G. <skunk@iSKUNK.ORG>
+ c-strcase-tests: port to EBCDIC
+ * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
+ which assume ASCII encoding semantics to run only in ASCII
+ mode, as they fail in EBCDIC.
+
sigpipe-tests: fix typo
* tests/test-sigpipe.sh: C, not B.
#include <config.h>
#include "c-strcase.h"
+#include "c-ctype.h"
#include <locale.h>
#include <string.h>
ASSERT (c_strncasecmp ("\303\266zg\303\274r", "\303\226ZG\303\234R", 99) > 0); /* özgür */
ASSERT (c_strncasecmp ("\303\226ZG\303\234R", "\303\266zg\303\274r", 99) < 0); /* özgür */
+#if C_CTYPE_ASCII
/* This test shows how strings of different size cannot compare equal. */
ASSERT (c_strncasecmp ("turkish", "TURK\304\260SH", 7) < 0);
ASSERT (c_strncasecmp ("TURK\304\260SH", "turkish", 7) > 0);
+#endif
return 0;
}