This source file includes following definitions.
- test_ascii
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 static void
20 test_ascii (int (*my_is) (const UNIT *, size_t, const char *, bool *))
21 {
22 {
23 static const UNIT input[] = { 'J', 'O', 'H', 'N', ' ', 'S', 'M', 'I', 'T', 'H' };
24 bool result;
25
26 ASSERT (my_is (input, SIZEOF (input), NULL, &result) == 0);
27 ASSERT (result == false);
28 }
29 {
30 static const UNIT input[] = { 'J', 'o', 'h', 'n', ' ', 'S', 'm', 'i', 't', 'h' };
31 bool result;
32
33 ASSERT (my_is (input, SIZEOF (input), NULL, &result) == 0);
34 ASSERT (result == false);
35 }
36 {
37 static const UNIT input[] = { 'j', 'o', 'h', 'n', ' ', 's', 'm', 'i', 't', 'h' };
38 bool result;
39
40 ASSERT (my_is (input, SIZEOF (input), NULL, &result) == 0);
41 ASSERT (result == true);
42 }
43 }