Tests/Partition: Compiler delinit
[AROS.git] / test / clib / ctype.c
blob018c6fa6a53568ef59253eac0e7c6a05bba108e4
1 #include <ctype.h>
2 #include <stdio.h>
4 #include "test.h"
6 int main(void)
8 char c;
10 c = '1';
11 TEST(isdigit(c));
12 TEST(!isalpha(c));
13 TEST(isalnum(c));
14 c = 'a';
15 TEST(!isdigit(c));
16 TEST(isalpha(c));
17 TEST(isalnum(c));
18 c = '.';
19 TEST(!isdigit(c));
20 TEST(!isalpha(c));
21 TEST(!isalnum(c));
22 TEST(toupper('a') == 'A');
23 TEST(toupper('A') == 'A');
24 TEST(tolower('Z') == 'z');
25 TEST(tolower('z') == 'z');
27 return 0;
30 void cleanup(void) {}