#include <ctype.h>
#include <stdio.h>
+/*
+ * Even though the VMS C RTL claims to be C99 compatible, it's not entirely
+ * so far (C RTL version 8.4). For the sake of these tests, we therefore
+ * define our own.
+ */
+#if defined(__VMS) && __CRTL_VER <= 80400000
+static int isblank(int c)
+{
+ return c == ' ' || c == '\t';
+}
+#endif
+
static int test_ctype_chars(int n)
{
return TEST_int_eq(isalnum(n) != 0, ossl_isalnum(n) != 0)
&& TEST_int_eq(isxdigit(n) != 0, ossl_isxdigit(n) != 0);
}
-static int test_ctype_negative(int n)
-{
- return test_ctype_chars(-n);
-}
-
static struct {
int u;
int l;
{ '%', '%' },
{ '~', '~' },
{ 0, 0 },
- { EOF, EOF },
- { 333, 333 },
- { -333, -333 },
- { -128, -128 }
+ { EOF, EOF }
};
static int test_ctype_toupper(int n)
int setup_tests(void)
{
- ADD_ALL_TESTS(test_ctype_chars, 256);
- ADD_ALL_TESTS(test_ctype_negative, 128);
+ ADD_ALL_TESTS(test_ctype_chars, 128);
ADD_ALL_TESTS(test_ctype_toupper, OSSL_NELEM(case_change));
ADD_ALL_TESTS(test_ctype_tolower, OSSL_NELEM(case_change));
return 1;