This source file includes following definitions.
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include <config.h>
20
21 #include "unistr.h"
22
23 #include "macros.h"
24
25 int
26 main ()
27 {
28
29 {
30 static const uint16_t input[] = { 0 };
31 ASSERT (u16_check (input, 0) == NULL);
32 }
33
34
35 {
36 static const uint16_t input[] =
37 { 0x0414, 0x0430, 0x043D, 0x0438, 0x043B, 0x043E, 0x0020, 0x0428, 0x0435, 0x0433, 0x0430, 0x043D };
38 ASSERT (u16_check (input, SIZEOF (input)) == NULL);
39 }
40
41
42 {
43 static const uint16_t input[] = { 0x0414, 0x0430, 0xDBFF, 0xE000 };
44 ASSERT (u16_check (input, SIZEOF (input)) == input + 2);
45 }
46
47
48 {
49 static const uint16_t input[] = { 0x0414, 0x0430, 0xDBFF, 0xDFFF };
50 ASSERT (u16_check (input, SIZEOF (input)) == NULL);
51 }
52 {
53 static const uint16_t input[] = { 0x0414, 0x0430, 0xDBFF };
54 ASSERT (u16_check (input, SIZEOF (input)) == input + 2);
55 }
56 {
57 static const uint16_t input[] = { 0x0414, 0x0430, 0xDFFF };
58 ASSERT (u16_check (input, SIZEOF (input)) == input + 2);
59 }
60 {
61 static const uint16_t input[] = { 0x0414, 0x0430, 0xDFFF, 0xDBFF };
62 ASSERT (u16_check (input, SIZEOF (input)) == input + 2);
63 }
64
65 return 0;
66 }