Copyright clean-up (part 1):
[AROS.git] / test / clib / ctype.c
blob6fa4ab70296f05819d8115a7fa2765b6e6382ba4
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <ctype.h>
7 #include <stdio.h>
9 #include "test.h"
11 int main(void)
13 char c;
15 c = '1';
16 TEST(isdigit(c));
17 TEST(!isalpha(c));
18 TEST(isalnum(c));
19 c = 'a';
20 TEST(!isdigit(c));
21 TEST(isalpha(c));
22 TEST(isalnum(c));
23 c = '.';
24 TEST(!isdigit(c));
25 TEST(!isalpha(c));
26 TEST(!isalnum(c));
27 TEST(toupper('a') == 'A');
28 TEST(toupper('A') == 'A');
29 TEST(tolower('Z') == 'z');
30 TEST(tolower('z') == 'z');
32 return 0;
35 void cleanup(void) {}