Debian Codegraph @

t/additional-tests-draft7/integers.json

raw
1 [
2 {
3 "description": "type checks",
4 "schema": {
5 "$comment": "on some architectures, some of these values may decode to strings or Math::BigInt objects",
6 "type": "integer"
7 },
8 "tests": [
9 {
10 "description": "beyond int64 lower boundary",
11 "data": -9223372036854775809,
12 "valid": true
13 },
14 {
15 "description": "int64 lower boundary",
16 "data": -9223372036854775808,
17 "valid": true
18 },
19 {
20 "description": "beyond int32 lower boundary",
21 "data": -2147483649,
22 "valid": true
23 },
24 {
25 "description": "int32 lower boundary",
26 "data": -2147483648,
27 "valid": true
28 },
29 {
30 "description": "zero",
31 "data": 0,
32 "valid": true
33 },
34 {
35 "description": "int32 upper boundary",
36 "data": 2147483647,
37 "valid": true
38 },
39 {
40 "description": "beyond int32 upper boundary",
41 "data": 2147483648,
42 "valid": true
43 },
44 {
45 "description": "upper int64 boundary",
46 "data": 9223372036854775807,
47 "valid": true
48 },
49 {
50 "description": "beyond int64 upper boundary",
51 "data": 9223372036854775808,
52 "valid": true
53 },
54 {
55 "description": "uint64 upper boundary",
56 "data": 18446744073709551615,
57 "valid": true
58 },
59 {
60 "description": "beyond uint64 upper boundary",
61 "data": 18446744073709551616,
62 "valid": true
63 }
64 ]
65 },
66 {
67 "description": "int32 range checks",
68 "schema": {
69 "$comment": "on some architectures, some of these values may decode to strings",
70 "minimum": -2147483648,
71 "maximum": 2147483647
72 },
73 "tests": [
74 {
75 "description": "beyond lower boundary",
76 "data": -2147483649,
77 "valid": false
78 },
79 {
80 "description": "lower boundary",
81 "data": -2147483648,
82 "valid": true
83 },
84 {
85 "description": "zero",
86 "data": 0,
87 "valid": true
88 },
89 {
90 "description": "upper boundary",
91 "data": 2147483647,
92 "valid": true
93 },
94 {
95 "description": "beyond upper boundary",
96 "data": 2147483648,
97 "valid": false
98 }
99 ]
100 },
101 {
102 "description": "int64 range checks",
103 "schema": {
104 "$comment": "on some architectures, some of these values may decode to strings",
105 "minimum": -9223372036854775808,
106 "maximum": 9223372036854775807
107 },
108 "tests": [
109 {
110 "description": "beyond lower boundary",
111 "data": -9223372036854775809,
112 "valid": false
113 },
114 {
115 "description": "lower boundary",
116 "data": -9223372036854775808,
117 "valid": true
118 },
119 {
120 "description": "zero",
121 "data": 0,
122 "valid": true
123 },
124 {
125 "description": "upper boundary",
126 "data": 9223372036854775807,
127 "valid": true
128 },
129 {
130 "description": "beyond upper boundary",
131 "data": 9223372036854775808,
132 "valid": false
133 }
134 ]
135 },
136 {
137 "description": "equality checks",
138 "schema": {
139 "$comment": "on some architectures, some of these values may json-decode to strings",
140 "enum": [
141 -9223372036854775809,
142 -9223372036854775808,
143 -2147483649,
144 -2147483648,
145 0,
146 2147483647,
147 2147483648,
148 9223372036854775807,
149 9223372036854775808
150 ]
151 },
152 "tests": [
153 {
154 "description": "beyond int64 lower boundary",
155 "data": -9223372036854775809,
156 "valid": true
157 },
158 {
159 "description": "int64 lower boundary",
160 "data": -9223372036854775808,
161 "valid": true
162 },
163 {
164 "description": "beyond int32 lower boundary",
165 "data": -2147483649,
166 "valid": true
167 },
168 {
169 "description": "int32 lower boundary",
170 "data": -2147483648,
171 "valid": true
172 },
173 {
174 "description": "zero",
175 "data": 0,
176 "valid": true
177 },
178 {
179 "description": "one",
180 "data": 1,
181 "valid": false
182 },
183 {
184 "description": "int32 upper boundary",
185 "data": 2147483647,
186 "valid": true
187 },
188 {
189 "description": "beyond int32 upper boundary",
190 "data": 2147483648,
191 "valid": true
192 },
193 {
194 "description": "int64 upper boundary",
195 "data": 9223372036854775807,
196 "valid": true
197 },
198 {
199 "description": "beyond int64 upper boundary",
200 "data": 9223372036854775808,
201 "valid": true
202 }
203 ]
204 }
205 ]