-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtestcases.xml
91 lines (90 loc) · 4.04 KB
/
testcases.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="SHIFT_JIS"?>
<!-- ^ multibyte encoding flag -->
<test>
<!-- Correct formatting + arrays -->
<entry __type="ip4" __count="2">127.0.0.1 192.168.0.1</entry>
<!-- Attributes plus text -->
<entry attr="test" attr2="best" __type="str">Hello, world!</entry>
<!-- Testing encoding, plus __type-less should become string -->
<superstar babe="ミツル">シ イス マイ ワイフ</superstar>
<!-- Testing 6bit conversion -->
<xXx_T4GG3R_xXx __type="2u8">8 9</xXx_T4GG3R_xXx>
<!-- Shouldn't have alignment issues from the 2u8 -->
<aligned __type="u8">12</aligned>
<!-- Array contents are never packed -->
<aligned_arr __type="u8" __count="1">13</aligned_arr>
<!-- Binary parsing -->
<entry __type="binary">DEADBEEF</entry>
<!-- Lowercase, too -->
<entry __type="bin">deadbe7a</entry>
<!-- Array of array -->
<entry __type="3u8" __count="2">1 2 3 1 2 3</entry>
<!-- Tag with no text element -->
<no_friends/>
<!-- Tag with no text element and some attrs -->
<food_for_thought bread="tasty"/>
<!-- Simple cases for the rest of the formats -->
<entry __type="s8">123</entry>
<entry __type="u8">123</entry>
<entry __type="s16">123</entry>
<entry __type="u16">123</entry>
<entry __type="s32">123</entry>
<entry __type="u32">123</entry>
<entry __type="s64">123</entry>
<entry __type="u64">123</entry>
<entry __type="bin">F00D1337</entry>
<entry __type="binary">DEADBEEF</entry>
<entry __type="string">TEST STRING 2</entry>
<entry __type="str">TEST STRING</entry>
<entry __type="ip4">192.168.0.1</entry>
<entry __type="float">123.100</entry>
<entry __type="f">123.100</entry>
<entry __type="d">123.100</entry>
<entry __type="double">123.100</entry>
<entry __type="2s8">127 -23</entry>
<entry __type="2u8" __count="2">232 12 13 14</entry>
<entry __type="2s16">1232 -5433</entry>
<entry __type="2u16">345 3455</entry>
<entry __type="2s32">123123 -12672</entry>
<entry __type="2u32">5345 76575</entry>
<entry __type="vs64">5687 -5687</entry>
<entry __type="2s64">-6582345 52345</entry>
<entry __type="vu64">82345 52345</entry>
<entry __type="2u64">6582345 52345</entry>
<entry __type="2f">-32.000 12.000</entry>
<entry __type="vd">-32.000 12.000</entry>
<entry __type="2d">-32.000 12.000</entry>
<entry __type="3s8">28 127 -124</entry>
<entry __type="3u8">2 4 255</entry>
<entry __type="3s16">2842 12427 -14224</entry>
<entry __type="3u16">242 424 24255</entry>
<entry __type="3s32">2248 175627 -12244</entry>
<entry __type="3u32">24422 44242 25245</entry>
<entry __type="3s64">2898 10927 -12094</entry>
<entry __type="3u64">28908 8904 2955</entry>
<entry __type="3f">-32.000 12.000 3.000</entry>
<entry __type="3d">-32.000 12.000 3.000</entry>
<entry __type="4s8">24 28 127 -124</entry>
<entry __type="4u8">1 2 255 255</entry>
<entry __type="4s16">-34 -53 -23 34</entry>
<entry __type="4u16">123 123 154 654</entry>
<entry __type="4s32">12 132 656 -4565</entry>
<entry __type="vs32">12 132 -656 4565</entry>
<entry __type="vu32">12 132 656 4565</entry>
<entry __type="4u32">12 132 656 4565</entry>
<entry __type="4s64">-31231 5128741 -123222 129381231</entry>
<entry __type="4u64">31231 5128741 1280371203 129381231</entry>
<entry __type="vf">-32.000 12.000 3.000 2.000</entry>
<entry __type="4f">5.000 52.000 -12.000 32.000</entry>
<entry __type="4d">1.000 3.000 4.000 -1.000</entry>
<entry __type="vs8">1 3 5 7 12 16 46 76 93 123 0 -124 -123 -12 -42 -56</entry>
<entry __type="vu8">1 3 5 7 12 16 46 76 93 123 178 240 255 127 126 255</entry>
<entry __type="vs16">93 123 0 -124 -123 -12 -42 -56</entry>
<entry __type="vu16">16 46 76 93 123 178 240 255</entry>
<entry __type="bool">1</entry>
<entry __type="b">1</entry>
<entry __type="2b">0 1</entry>
<entry __type="3b">1 0 1</entry>
<entry __type="4b">1 1 1 0</entry>
<entry __type="vb">1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</entry>
</test>