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 uint8_t input[] = "";
31 ASSERT (u8_check (input, 0) == NULL);
32 }
33
34
35 {
36 static const uint8_t input[] =
37 "\320\224\320\260\320\275\320\270\320\273\320\276 \320\250\320\265\320\263\320\260\320\275";
38 ASSERT (u8_check (input, sizeof (input) - 1) == NULL);
39 }
40
41
42 {
43 static const uint8_t input[] = "\320\224\320\260\364\220\200\200";
44 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
45 }
46
47
48 {
49 static const uint8_t input[] = "\320\224\320\260\370\210\200\200\200";
50 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
51 }
52
53
54 {
55 static const uint8_t input[] = "\320\224\320\260\374\204\200\200\200\200";
56 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
57 }
58
59
60 {
61 static const uint8_t input[] = "\320\224\320\260\376\200\200\200\200\200";
62 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
63 }
64 {
65 static const uint8_t input[] = "\320\224\320\260\377\200\200\200\200\200";
66 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
67 }
68
69
70 {
71 static const uint8_t input[] = "\320\224\320\260\301\200";
72 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
73 }
74
75
76 {
77 static const uint8_t input[] = "\320\224\320\260\340\200\277";
78 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
79 }
80
81
82 {
83 static const uint8_t input[] = "\320\224\320\260\360\200\277\277";
84 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
85 }
86
87
88 {
89 static const uint8_t input[] = "\320\224\320\260\302\200";
90 ASSERT (u8_check (input, sizeof (input) - 1) == NULL);
91 }
92 {
93 static const uint8_t input[] = "\320\224\320\260\302\100";
94 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
95 }
96 {
97 static const uint8_t input[] = "\320\224\320\260\302\300";
98 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
99 }
100
101
102 {
103 static const uint8_t input[] = "\320\224\320\260\342\200\200";
104 ASSERT (u8_check (input, sizeof (input) - 1) == NULL);
105 }
106 {
107 static const uint8_t input[] = "\320\224\320\260\342\100\200";
108 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
109 }
110 {
111 static const uint8_t input[] = "\320\224\320\260\342\300\200";
112 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
113 }
114 {
115 static const uint8_t input[] = "\320\224\320\260\342\200\100";
116 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
117 }
118 {
119 static const uint8_t input[] = "\320\224\320\260\342\200\300";
120 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
121 }
122
123
124 {
125 static const uint8_t input[] = "\320\224\320\260\362\200\200\200";
126 ASSERT (u8_check (input, sizeof (input) - 1) == NULL);
127 }
128 {
129 static const uint8_t input[] = "\320\224\320\260\362\100\200\200";
130 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
131 }
132 {
133 static const uint8_t input[] = "\320\224\320\260\362\300\200\200";
134 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
135 }
136 {
137 static const uint8_t input[] = "\320\224\320\260\362\200\100\200";
138 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
139 }
140 {
141 static const uint8_t input[] = "\320\224\320\260\362\200\300\200";
142 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
143 }
144 {
145 static const uint8_t input[] = "\320\224\320\260\362\200\200\100";
146 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
147 }
148 {
149 static const uint8_t input[] = "\320\224\320\260\362\200\200\300";
150 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
151 }
152
153
154 {
155 static const uint8_t input[] = "\320\224\320\260\302";
156 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
157 }
158
159
160 {
161 static const uint8_t input[] = "\320\224\320\260\342\200";
162 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
163 }
164
165
166 {
167 static const uint8_t input[] = "\320\224\320\260\362\200\200";
168 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
169 }
170
171
172 {
173 static const uint8_t input[] = "\320\224\320\260\200\200\200\200\200";
174 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
175 }
176
177
178 {
179 static const uint8_t input[] = "\320\224\320\260\355\240\200\355\260\200";
180 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
181 }
182 {
183 static const uint8_t input[] = "\320\224\320\260\355\260\200";
184 ASSERT (u8_check (input, sizeof (input) - 1) == input + 4);
185 }
186
187 return 0;
188 }