OSDN Git Service

fix copyright year.
[bbk/bchan.git] / src / test_tadimf.c
1 /*
2  * test_tadimf.c
3  *
4  * Copyright (c) 2010 project bchan
5  *
6  * This software is provided 'as-is', without any express or implied
7  * warranty. In no event will the authors be held liable for any damages
8  * arising from the use of this software.
9  *
10  * Permission is granted to anyone to use this software for any purpose,
11  * including commercial applications, and to alter it and redistribute it
12  * freely, subject to the following restrictions:
13  *
14  * 1. The origin of this software must not be misrepresented; you must not
15  *    claim that you wrote the original software. If you use this software
16  *    in a product, an acknowledgment in the product documentation would be
17  *    appreciated but is not required.
18  *
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  *    misrepresented as being the original software.
21  *
22  * 3. This notice may not be removed or altered from any source
23  *    distribution.
24  *
25  */
26
27 #include    <btron/btron.h>
28 #include    <bstdio.h>
29 #include    <tcode.h>
30
31 #include    "test.h"
32
33 #include    "tadimf.h"
34
35 LOCAL UB test_tadimf_testdata01[] = {
36         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
37         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
38         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
39         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
40         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
41         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
42         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
43         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
44         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
45         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
46         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
47         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
48         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
49         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
50         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
51         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
52         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
53         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
54         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
55         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
56         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
57         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
58         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
59         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
60         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
62         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
63         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
64         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
65         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
66         0x27, 0x21, 0x21, 0x21, 0x6e, 0x23, 0x61, 0x23,
67         0x6d, 0x23, 0x65, 0x23, 0x0a, 0x00, 0x6d, 0x23,
68         0x61, 0x23, 0x69, 0x23, 0x6c, 0x23, 0x27, 0x21,
69         0x21, 0x21, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
70         0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00, 0x62, 0x23,
71         0x6f, 0x23, 0x64, 0x23, 0x79, 0x23, 0xe2, 0xff,
72         0x00, 0x00,
73 };
74 LOCAL UB test_tadimf_testdata02[] = {
75         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
76         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
77         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
78         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
79         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
80         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
81         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
82         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
83         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
84         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
85         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
86         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
87         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
88         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
89         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
90         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
91         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
92         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
93         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
94         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
95         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
96         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
97         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
98         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
99         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
100         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
101         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
102         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
103         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
104         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
105         0x27, 0x21, 0x21, 0x21, 0x0a, 0x00, 0x6d, 0x23,
106         0x61, 0x23, 0x69, 0x23, 0x6c, 0x23, 0x27, 0x21,
107         0x21, 0x21, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
108         0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00, 0x62, 0x23,
109         0x6f, 0x23, 0x64, 0x23, 0x79, 0x23, 0xe2, 0xff,
110         0x00, 0x00,
111 };
112 LOCAL UB test_tadimf_testdata03[] = {
113         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
114         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
115         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
116         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
117         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
118         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
119         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
120         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
121         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
122         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
123         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
124         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
125         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
126         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
127         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
128         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
129         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
130         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
131         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
132         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
133         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
134         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
135         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
136         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
137         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
138         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
139         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
140         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
141         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
142         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
143         0x27, 0x21, 0x21, 0x21, 0x6e, 0x23, 0x61, 0x23,
144         0x6d, 0x23, 0x65, 0x23, 0x0a, 0x00, 0x6d, 0x23,
145         0x61, 0x23, 0x69, 0x23, 0x6c, 0x23, 0x27, 0x21,
146         0x21, 0x21, 0x0a, 0x00, 0x0a, 0x00, 0x62, 0x23,
147         0x6f, 0x23, 0x64, 0x23, 0x79, 0x23, 0xe2, 0xff,
148         0x00, 0x00,
149 };
150 LOCAL UB test_tadimf_testdata04[] = {
151         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
152         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
153         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
154         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
155         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
156         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
157         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
158         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
159         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
160         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
161         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
162         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
163         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
164         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
165         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
166         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
167         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
168         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
169         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
170         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
171         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
172         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
173         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
174         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
175         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
176         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
177         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
178         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
179         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
180         0xa2, 0xff, 0x06, 0x00, 0x00, 0x03, 0x00, 0x00,
181         0x02, 0x01, 0x46, 0x23, 0x52, 0x23, 0x4f, 0x23,
182         0x4d, 0x23, 0x27, 0x21, 0x21, 0x21, 0x6e, 0x23,
183         0x61, 0x23, 0x6d, 0x23, 0x65, 0x23, 0x0a, 0x00,
184         0x6d, 0x23, 0x61, 0x23, 0x69, 0x23, 0x6c, 0x23,
185         0x27, 0x21, 0x21, 0x21, 0x6d, 0x23, 0x61, 0x23,
186         0x69, 0x23, 0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00,
187         0x62, 0x23, 0x6f, 0x23, 0x64, 0x23, 0x79, 0x23,
188         0xe2, 0xff, 0x00, 0x00,
189 };
190 LOCAL UB test_tadimf_testdata05[] = {
191         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
192         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
193         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
194         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
195         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
196         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
197         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
198         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
199         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
200         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
201         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
202         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
203         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
204         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
205         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
206         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
207         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
208         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
209         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
210         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
211         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
212         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
213         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
214         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
215         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
216         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
217         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
218         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
219         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
220         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
221         0x27, 0x21, 0x21, 0x21, 0xa2, 0xff, 0x06, 0x00,
222         0x00, 0x03, 0x00, 0x00, 0x02, 0x01, 0x6e, 0x23,
223         0x61, 0x23, 0x6d, 0x23, 0x65, 0x23, 0x0a, 0x00,
224         0x6d, 0x23, 0x61, 0x23, 0x69, 0x23, 0x6c, 0x23,
225         0x27, 0x21, 0x21, 0x21, 0x6d, 0x23, 0x61, 0x23,
226         0x69, 0x23, 0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00,
227         0x62, 0x23, 0x6f, 0x23, 0x64, 0x23, 0x79, 0x23,
228         0xe2, 0xff, 0x00, 0x00,
229 };
230 LOCAL UB test_tadimf_testdata06[] = {
231         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
232         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
233         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
234         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
235         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
236         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
237         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
238         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
239         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
240         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
241         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
242         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
243         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
244         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
245         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
246         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
247         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
248         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
249         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
250         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
251         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
252         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
253         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
254         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
255         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
256         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
257         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
258         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
259         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
260         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
261         0x27, 0x21, 0x21, 0x21, 0xa2, 0xff, 0x06, 0x00,
262         0x00, 0x03, 0x00, 0x00, 0x02, 0x01, 0x6e, 0x23,
263         0x61, 0x23, 0x6d, 0x23, 0x65, 0x23, 0xa2, 0xff,
264         0x06, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00,
265         0x0a, 0x00, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
266         0x6c, 0x23, 0x27, 0x21, 0x21, 0x21, 0xa2, 0xff,
267         0x06, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x01,
268         0x6d, 0x23, 0x61, 0x23, 0x69, 0x23, 0x6c, 0x23,
269         0xa2, 0xff, 0x06, 0x00, 0x00, 0x03, 0x00, 0x00,
270         0x00, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x62, 0x23,
271         0x6f, 0x23, 0x64, 0x23, 0x79, 0x23, 0xe2, 0xff,
272         0x00, 0x00,
273 };
274 LOCAL UB test_tadimf_testdata07[] = {
275         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
276         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
277         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
278         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
279         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
280         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
281         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
282         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
283         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
284         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
285         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
286         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
287         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
288         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
289         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
290         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
291         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
292         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
293         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
294         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
295         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
296         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
297         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
298         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
299         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
300         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
301         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
302         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
303         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
304         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
305         0x27, 0x21, 0x21, 0x21, 0xa2, 0xff, 0x06, 0x00,
306         0x00, 0x03, 0x00, 0x00, 0x02, 0x01, 0x6e, 0x23,
307         0x61, 0x23, 0xa2, 0xff, 0x06, 0x00, 0x00, 0x03,
308         0x00, 0x00, 0x00, 0x00, 0x6d, 0x23, 0x65, 0x23,
309         0x0a, 0x00, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
310         0x6c, 0x23, 0x27, 0x21, 0x21, 0x21, 0xa2, 0xff,
311         0x06, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x01,
312         0x6d, 0x23, 0x61, 0x23, 0xa2, 0xff, 0x06, 0x00,
313         0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x69, 0x23,
314         0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00, 0x62, 0x23,
315         0x6f, 0x23, 0x64, 0x23, 0x79, 0x23, 0xe2, 0xff,
316         0x00, 0x00,
317 };
318 LOCAL UB test_tadimf_testdata08[] = {
319         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
320         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
321         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
322         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
323         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
324         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
325         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
326         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
327         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
328         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
329         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
330         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
331         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
332         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
333         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
334         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
335         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
336         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
337         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
338         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
339         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
340         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
341         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
342         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
343         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
344         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
345         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
346         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
347         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
348         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
349         0x27, 0x21, 0x21, 0x21, 0x6e, 0x23, 0x61, 0x23,
350         0x6d, 0x23, 0x65, 0x23, 0x0a, 0x00, 0x6d, 0x23,
351         0x61, 0x23, 0x69, 0x23, 0x6c, 0x23, 0x27, 0x21,
352         0x21, 0x21, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
353         0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00, 0x46, 0x24,
354         0x39, 0x24, 0x46, 0x24, 0x39, 0x24, 0x48, 0x24,
355         0x0a, 0x00, 0x46, 0x24, 0x39, 0x24, 0x46, 0x24,
356         0x39, 0x24, 0x48, 0x24, 0x0a, 0x00, 0x46, 0x24,
357         0x39, 0x24, 0x46, 0x24, 0x39, 0x24, 0x48, 0x24,
358         0x0a, 0x00, 0x46, 0x24, 0x39, 0x24, 0x46, 0x24,
359         0x39, 0x24, 0x48, 0x24, 0x0a, 0x00, 0x46, 0x24,
360         0x39, 0x24, 0x46, 0x24, 0x39, 0x24, 0x48, 0x24,
361         0x0a, 0x00, 0x46, 0x24, 0x39, 0x24, 0x46, 0x24,
362         0x39, 0x24, 0x48, 0x24, 0x0a, 0x00, 0x46, 0x24,
363         0x39, 0x24, 0x46, 0x24, 0x39, 0x24, 0x48, 0x24,
364         0x0a, 0x00, 0x46, 0x24, 0x39, 0x24, 0x46, 0x24,
365         0x39, 0x24, 0x48, 0x24, 0x0a, 0x00, 0xe2, 0xff,
366         0x00, 0x00,
367 };
368 LOCAL UB test_tadimf_testdata09[] = {
369         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
370         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
371         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
372         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
373         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
374         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
375         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
376         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
377         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
378         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
379         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
380         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
381         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
382         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
383         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
384         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
385         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
386         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
387         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
388         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
389         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
390         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
391         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
392         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
393         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
394         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
395         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
396         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
397         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
398         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
399         0x27, 0x21, 0x0a, 0x00, 0x6d, 0x23, 0x61, 0x23,
400         0x69, 0x23, 0x6c, 0x23, 0x27, 0x21, 0x0a, 0x00,
401         0x0a, 0x00, 0x62, 0x23, 0x6f, 0x23, 0x64, 0x23,
402         0x79, 0x23, 0xe2, 0xff, 0x00, 0x00,
403 };
404 LOCAL UB test_tadimf_testdata10[] = {
405         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
406         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
407         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
408         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
409         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
410         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
411         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
412         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
413         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
414         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
415         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
416         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
417         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
418         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
419         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
420         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
421         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
422         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
423         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
424         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
425         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
426         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
427         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
428         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
429         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
430         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
431         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
432         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
433         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
434         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
435         0x27, 0x21, 0x6e, 0x23, 0x61, 0x23, 0x6d, 0x23,
436         0x65, 0x23, 0x0a, 0x00, 0x6d, 0x23, 0x61, 0x23,
437         0x69, 0x23, 0x6c, 0x23, 0x27, 0x21, 0x6d, 0x23,
438         0x61, 0x23, 0x69, 0x23, 0x6c, 0x23, 0x0a, 0x00,
439         0x0a, 0x00, 0x62, 0x23, 0x6f, 0x23, 0x64, 0x23,
440         0x79, 0x23, 0xe2, 0xff, 0x00, 0x00,
441 };
442 LOCAL UB test_tadimf_testdata11[] = {
443         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
444         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
445         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
446         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
447         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
448         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
449         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
450         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
451         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
452         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
453         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
454         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
455         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
456         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
457         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
458         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
459         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
460         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
461         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
462         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
463         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
464         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
465         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
466         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
467         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
468         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
469         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
470         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
471         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
472         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
473         0x27, 0x21, 0x6e, 0x23, 0x61, 0x23, 0x6d, 0x23,
474         0x65, 0x23, 0x0a, 0x00, 0x22, 0x24, 0x24, 0x24,
475         0x26, 0x24, 0x28, 0x24, 0x2a, 0x24, 0x27, 0x21,
476         0x0a, 0x00, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
477         0x6c, 0x23, 0x27, 0x21, 0x6d, 0x23, 0x61, 0x23,
478         0x69, 0x23, 0x6c, 0x23, 0x0a, 0x00, 0x2b, 0x24,
479         0x2d, 0x24, 0x2f, 0x24, 0x31, 0x24, 0x33, 0x24,
480         0x27, 0x21, 0x0a, 0x00, 0x0a, 0x00, 0x62, 0x23,
481         0x6f, 0x23, 0x64, 0x23, 0x79, 0x23, 0xe2, 0xff,
482         0x00, 0x00,
483 };
484 LOCAL UB test_tadimf_testdata12[] = {
485         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
486         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
487         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
488         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
489         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
490         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
491         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
492         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
493         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
494         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
495         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
496         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
497         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
498         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
499         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
500         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
501         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
502         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
503         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
504         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
505         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
506         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
507         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
508         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
509         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
510         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
511         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
512         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
513         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
514         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
515         0x27, 0x21, 0x6e, 0x23, 0x61, 0x23, 0x6d, 0x23,
516         0x65, 0x23, 0x0a, 0x00, 0x22, 0x24, 0x24, 0x24,
517         0x26, 0x24, 0x28, 0x24, 0x2a, 0x24, 0x0a, 0x00,
518         0x6d, 0x23, 0x61, 0x23, 0x69, 0x23, 0x6c, 0x23,
519         0x27, 0x21, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
520         0x6c, 0x23, 0x0a, 0x00, 0x2b, 0x24, 0x2d, 0x24,
521         0x2f, 0x24, 0x31, 0x24, 0x33, 0x24, 0x0a, 0x00,
522         0x0a, 0x00, 0x62, 0x23, 0x6f, 0x23, 0x64, 0x23,
523         0x79, 0x23, 0xe2, 0xff, 0x00, 0x00,
524 };
525 LOCAL UB test_tadimf_testdata13[] = {
526         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
527         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
528         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
529         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
530         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
531         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
532         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
533         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
534         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
535         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
536         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
537         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
538         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
539         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
540         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
541         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
542         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
543         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
544         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
545         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
546         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
547         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
548         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
549         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
550         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
551         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
552         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
553         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
554         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
555         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
556         0x27, 0x21, 0x21, 0x21, 0x6e, 0x23, 0x61, 0x23,
557         0x6d, 0x23, 0x65, 0x23, 0x0a, 0x00, 0x6d, 0x23,
558         0x61, 0x23, 0x69, 0x23, 0x6c, 0x23, 0x27, 0x21,
559         0x21, 0x21, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
560         0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00, 0xa2, 0xff,
561         0x06, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x01,
562         0x62, 0x23, 0x6f, 0x23, 0x64, 0x23, 0x79, 0x23,
563         0xe2, 0xff, 0x00, 0x00,
564 };
565 LOCAL UB test_tadimf_testdata14[] = {
566         0xe0, 0xff, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00,
567         0x22, 0x01, 0xe1, 0xff, 0x18, 0x00, 0x00, 0x00,
568         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
569         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xff,
570         0x88, 0xff, 0x21, 0x00, 0x00, 0x00, 0xa0, 0xff,
571         0x0e, 0x00, 0x00, 0x00, 0x7b, 0x05, 0xe0, 0x03,
572         0x5e, 0x00, 0x46, 0x00, 0x6c, 0x00, 0x55, 0x00,
573         0xa0, 0xff, 0x0a, 0x00, 0x00, 0x01, 0x5e, 0x00,
574         0x76, 0x00, 0x6c, 0x00, 0x55, 0x00, 0xa0, 0xff,
575         0x22, 0x00, 0x00, 0x03, 0xa0, 0xff, 0x02, 0x00,
576         0x00, 0x08, 0xa1, 0xff, 0x04, 0x00, 0x00, 0x00,
577         0x00, 0x80, 0xa1, 0xff, 0x02, 0x00, 0x01, 0x01,
578         0x5d, 0x21, 0xad, 0xff, 0x04, 0x00, 0x00, 0x00,
579         0xc8, 0x00, 0x5d, 0x21, 0xa0, 0xff, 0x04, 0x00,
580         0x00, 0x04, 0x00, 0x80, 0xa4, 0xff, 0x24, 0x00,
581         0x11, 0x08, 0x22, 0x21, 0x23, 0x21, 0x24, 0x21,
582         0x25, 0x21, 0x2b, 0x21, 0x2c, 0x21, 0x47, 0x21,
583         0x49, 0x21, 0x4b, 0x21, 0x4d, 0x21, 0x4f, 0x21,
584         0x51, 0x21, 0x53, 0x21, 0x55, 0x21, 0x57, 0x21,
585         0x59, 0x21, 0x5b, 0x21, 0xa4, 0xff, 0x18, 0x00,
586         0x11, 0x09, 0x46, 0x21, 0x48, 0x21, 0x4a, 0x21,
587         0x4c, 0x21, 0x4e, 0x21, 0x50, 0x21, 0x52, 0x21,
588         0x54, 0x21, 0x56, 0x21, 0x58, 0x21, 0x5a, 0x21,
589         0xa1, 0xff, 0x24, 0x00, 0x00, 0x02, 0x04, 0x01,
590         0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
591         0x0b, 0x00, 0x48, 0x00, 0x90, 0x00, 0xd8, 0x00,
592         0x20, 0x01, 0x68, 0x01, 0xb0, 0x01, 0xf8, 0x01,
593         0x40, 0x02, 0x88, 0x02, 0xd0, 0x02, 0x18, 0x03,
594         0xa1, 0xff, 0x04, 0x00, 0x01, 0x00, 0x04, 0x01,
595         0x46, 0x23, 0x52, 0x23, 0x4f, 0x23, 0x4d, 0x23,
596         0x27, 0x21, 0x21, 0x21, 0x6e, 0x23, 0x61, 0x23,
597         0x6d, 0x23, 0x65, 0x23, 0x0a, 0x00, 0x6d, 0x23,
598         0x61, 0x23, 0x69, 0x23, 0x6c, 0x23, 0x27, 0x21,
599         0x21, 0x21, 0x6d, 0x23, 0x61, 0x23, 0x69, 0x23,
600         0x6c, 0x23, 0x0a, 0x00, 0x0a, 0x00, 0x62, 0x23,
601         0x6f, 0x23, 0x64, 0x23, 0x79, 0x23, 0x0a, 0x00,
602         0xa2, 0xff, 0x06, 0x00, 0x00, 0x03, 0x00, 0x00,
603         0x02, 0x01, 0x62, 0x23, 0x6f, 0x23, 0x64, 0x23,
604         0x79, 0x23, 0xe2, 0xff, 0x00, 0x00,
605 };
606
607 #define NAMELIST_TEST_VAL_FROM 1
608 #define NAMELIST_TEST_VAL_mail 2
609 LOCAL tctokenchecker_valuetuple_t namelist_test[] = {
610   {(TC[]){TK_F, TK_R, TK_O, TK_M, TNULL}, NAMELIST_TEST_VAL_FROM},
611   {(TC[]){TK_m, TK_a, TK_i, TK_l, TNULL}, NAMELIST_TEST_VAL_mail},
612 };
613
614 LOCAL TEST_RESULT test_tadimf_valuecheck(TC *testdata, W testdata_len, TC *val_from, W val_from_len, TC *val_mail, W val_mail_len, TC *val_body, W val_body_len)
615 {
616         timfparser_t timf;
617         TIMFPARSER_RESULT_T cont;
618         UB *bin;
619         W len, val, ret;
620         TEST_RESULT result = TEST_RESULT_PASS;
621         W val_from_i = 0, val_mail_i = 0, val_body_i = 0;
622
623         timfparser_initialize(&timf, namelist_test, 2, testdata, testdata_len);
624
625         for (;;) {
626                 cont = timfparser_next(&timf, &val, &bin, &len);
627                 if (cont == TIMFPARSER_RESULT_HEADERVALUE) {
628                         if (val == NAMELIST_TEST_VAL_FROM) {
629                                 ret = memcmp(val_from + val_from_i, bin, len);
630                                 if (ret != 0) {
631                                         printf(" header value FROM: error, i = %d, len = %d\n", val_from_i, len);
632                                         result = TEST_RESULT_FAIL;
633                                 }
634                                 val_from_i += len / sizeof(TC);
635                         } else if (val == NAMELIST_TEST_VAL_mail) {
636                                 ret = memcmp(val_mail + val_mail_i, bin, len);
637                                 if (ret != 0) {
638                                         printf(" header value mail: error, i = %d, len = %d\n", val_mail_i, len);
639                                         result = TEST_RESULT_FAIL;
640                                 }
641                                 val_mail_i += len / sizeof(TC);
642                         } else {
643                                 result = TEST_RESULT_FAIL;
644                         }
645                 } else if (cont == TIMFPARSER_RESULT_BODY) {
646                         ret = memcmp(val_body + val_body_i, bin, len);
647                         if (ret != 0) {
648                                 printf(" body value error, i = %d, len = %d\n", val_body_i, len);
649                                 result = TEST_RESULT_FAIL;
650                         }
651                         val_body_i += len / sizeof(TC);
652                 } else if (cont == TIMFPARSER_RESULT_END) {
653                         break;
654                 } else {
655                         result = TEST_RESULT_FAIL;
656                         break;
657                 }
658         }
659
660         if (val_from_i != val_from_len) {
661                 result = TEST_RESULT_FAIL;
662                 printf("val_from_len error, read len = %d, given len = %d\n", val_from_i, val_from_len);
663         }
664         if (val_mail_i != val_mail_len) {
665                 result = TEST_RESULT_FAIL;
666                 printf("val_mail_len error, read len = %d, given len = %d\n", val_mail_i, val_mail_len);
667         }
668         if (val_body_i != val_body_len) {
669                 result = TEST_RESULT_FAIL;
670                 printf("val_body_len error, read len = %d, given len = %d\n", val_body_i, val_body_len);
671         }
672
673         timfparser_finalize(&timf);
674
675         return result;
676 }
677
678 LOCAL TEST_RESULT test_tadimf_1()
679 {
680         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
681         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
682         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
683         return test_tadimf_valuecheck((TC*)test_tadimf_testdata01,
684                                                                   sizeof(test_tadimf_testdata01)/sizeof(TC),
685                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
686                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
687                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
688 }
689
690 LOCAL TEST_RESULT test_tadimf_2()
691 {
692         TC val_from[] = {TNULL};
693         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
694         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
695         return test_tadimf_valuecheck((TC*)test_tadimf_testdata02,
696                                                                   sizeof(test_tadimf_testdata02)/sizeof(TC),
697                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
698                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
699                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
700 }
701
702 LOCAL TEST_RESULT test_tadimf_3()
703 {
704         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
705         TC val_mail[] = {TNULL};
706         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
707         return test_tadimf_valuecheck((TC*)test_tadimf_testdata03,
708                                                                   sizeof(test_tadimf_testdata03)/sizeof(TC),
709                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
710                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
711                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
712 }
713
714 LOCAL TEST_RESULT test_tadimf_4()
715 {
716         TC val_from[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_n, TK_a, TK_m, TK_e, TNULL};
717         TC val_mail[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_m, TK_a, TK_i, TK_l, TNULL};
718         TC val_body[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_b, TK_o, TK_d, TK_y, TNULL};
719         return test_tadimf_valuecheck((TC*)test_tadimf_testdata04,
720                                                                   sizeof(test_tadimf_testdata04)/sizeof(TC),
721                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
722                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
723                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
724 }
725
726 LOCAL TEST_RESULT test_tadimf_5()
727 {
728         TC val_from[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_n, TK_a, TK_m, TK_e, TNULL};
729         TC val_mail[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_m, TK_a, TK_i, TK_l, TNULL};
730         TC val_body[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_b, TK_o, TK_d, TK_y, TNULL};
731         return test_tadimf_valuecheck((TC*)test_tadimf_testdata05,
732                                                                   sizeof(test_tadimf_testdata05)/sizeof(TC),
733                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
734                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
735                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
736 }
737
738 LOCAL TEST_RESULT test_tadimf_6()
739 {
740         TC val_from[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_n, TK_a, TK_m, TK_e, 0xFFA2, 0x0006, 0x0300, 0x0000, 0x0000, TNULL};
741         TC val_mail[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_m, TK_a, TK_i, TK_l, 0xFFA2, 0x0006, 0x0300, 0x0000, 0x0000, TNULL};
742         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
743         return test_tadimf_valuecheck((TC*)test_tadimf_testdata06,
744                                                                   sizeof(test_tadimf_testdata06)/sizeof(TC),
745                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
746                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
747                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
748 }
749
750 LOCAL TEST_RESULT test_tadimf_7()
751 {
752         TC val_from[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_n, TK_a, 0xFFA2, 0x0006, 0x0300, 0x0000, 0x0000, TK_m, TK_e, TNULL};
753         TC val_mail[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_m, TK_a, 0xFFA2, 0x0006, 0x0300, 0x0000, 0x0000, TK_i, TK_l, TNULL};
754         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
755         return test_tadimf_valuecheck((TC*)test_tadimf_testdata07,
756                                                                   sizeof(test_tadimf_testdata07)/sizeof(TC),
757                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
758                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
759                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
760 }
761
762 LOCAL TEST_RESULT test_tadimf_8()
763 {
764         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
765         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
766         TC val_body[] = {0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a,
767                                          0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a,
768                                          0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a,
769                                          0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a,
770                                          0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a,
771                                          0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a,
772                                          0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a,
773                                          0x2446, 0x2439, 0x2446, 0x2439, 0x2448, 0x000a, TNULL};
774         return test_tadimf_valuecheck((TC*)test_tadimf_testdata08,
775                                                                   sizeof(test_tadimf_testdata08)/sizeof(TC),
776                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
777                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
778                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
779 }
780
781 LOCAL TEST_RESULT test_tadimf_9()
782 {
783         TC val_from[] = {TNULL};
784         TC val_mail[] = {TNULL};
785         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
786         return test_tadimf_valuecheck((TC*)test_tadimf_testdata09,
787                                                                   sizeof(test_tadimf_testdata09)/sizeof(TC),
788                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
789                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
790                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
791 }
792
793 LOCAL TEST_RESULT test_tadimf_10()
794 {
795         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
796         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
797         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
798         return test_tadimf_valuecheck((TC*)test_tadimf_testdata10,
799                                                                   sizeof(test_tadimf_testdata10)/sizeof(TC),
800                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
801                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
802                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
803 }
804
805 LOCAL TEST_RESULT test_tadimf_11()
806 {
807         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
808         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
809         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
810         return test_tadimf_valuecheck((TC*)test_tadimf_testdata11,
811                                                                   sizeof(test_tadimf_testdata11)/sizeof(TC),
812                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
813                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
814                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
815 }
816
817 LOCAL TEST_RESULT test_tadimf_12()
818 {
819         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
820         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
821         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TNULL};
822         return test_tadimf_valuecheck((TC*)test_tadimf_testdata12,
823                                                                   sizeof(test_tadimf_testdata12)/sizeof(TC),
824                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
825                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
826                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
827 }
828
829 LOCAL TEST_RESULT test_tadimf_13()
830 {
831         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
832         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
833         TC val_body[] = {0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_b, TK_o, TK_d, TK_y, TNULL};
834         return test_tadimf_valuecheck((TC*)test_tadimf_testdata13,
835                                                                   sizeof(test_tadimf_testdata13)/sizeof(TC),
836                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
837                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
838                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
839 }
840
841 LOCAL TEST_RESULT test_tadimf_14()
842 {
843         TC val_from[] = {TK_n, TK_a, TK_m, TK_e, TNULL};
844         TC val_mail[] = {TK_m, TK_a, TK_i, TK_l, TNULL};
845         TC val_body[] = {TK_b, TK_o, TK_d, TK_y, TK_NL, 0xFFA2, 0x0006, 0x0300, 0x0000, 0x0102, TK_b, TK_o, TK_d, TK_y, TNULL};
846         return test_tadimf_valuecheck((TC*)test_tadimf_testdata14,
847                                                                   sizeof(test_tadimf_testdata14)/sizeof(TC),
848                                                                   val_from, (sizeof(val_from) - 2)/sizeof(TC),
849                                                                   val_mail, (sizeof(val_mail) - 2)/sizeof(TC),
850                                                                   val_body, (sizeof(val_body) - 2)/sizeof(TC));
851 }
852
853 LOCAL VOID test_tadimf_printresult(TEST_RESULT (*proc)(), B *test_name)
854 {
855         TEST_RESULT result;
856
857         printf("test_tadimf: %s\n", test_name);
858         printf("---------------------------------------------\n");
859         result = proc();
860         if (result == TEST_RESULT_PASS) {
861                 printf("--pass---------------------------------------\n");
862         } else {
863                 printf("--fail---------------------------------------\n");
864         }
865         printf("---------------------------------------------\n");
866 }
867
868 EXPORT VOID test_tadimf_main()
869 {
870         test_tadimf_printresult(test_tadimf_1, "test_tadimf_1");
871         test_tadimf_printresult(test_tadimf_2, "test_tadimf_2");
872         test_tadimf_printresult(test_tadimf_3, "test_tadimf_3");
873         test_tadimf_printresult(test_tadimf_4, "test_tadimf_4");
874         test_tadimf_printresult(test_tadimf_5, "test_tadimf_5");
875         test_tadimf_printresult(test_tadimf_6, "test_tadimf_6");
876         test_tadimf_printresult(test_tadimf_7, "test_tadimf_7");
877         test_tadimf_printresult(test_tadimf_8, "test_tadimf_8");
878         test_tadimf_printresult(test_tadimf_9, "test_tadimf_9");
879         test_tadimf_printresult(test_tadimf_10, "test_tadimf_10");
880         test_tadimf_printresult(test_tadimf_11, "test_tadimf_11");
881         test_tadimf_printresult(test_tadimf_12, "test_tadimf_12");
882         test_tadimf_printresult(test_tadimf_13, "test_tadimf_13");
883         test_tadimf_printresult(test_tadimf_14, "test_tadimf_14");
884 }