Debian Codegraph @

t/additional-tests-draft2020-12/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": "uint32 upper boundary",
46 "data": 4294967295,
47 "valid": true
48 },
49 {
50 "description": "beyond uint32 upper boundary",
51 "data": 4294967296,
52 "valid": true
53 },
54 {
55 "description": "upper int64 boundary",
56 "data": 9223372036854775807,
57 "valid": true
58 },
59 {
60 "description": "beyond int64 upper boundary",
61 "data": 9223372036854775808,
62 "valid": true
63 },
64 {
65 "description": "uint64 upper boundary",
66 "data": 18446744073709551615,
67 "valid": true
68 },
69 {
70 "description": "beyond uint64 upper boundary",
71 "data": 18446744073709551616,
72 "valid": true
73 }
74 ]
75 },
76 {
77 "description": "int32 range checks",
78 "schema": {
79 "$comment": "on some architectures, some of these values may decode to strings",
80 "minimum": -2147483648,
81 "maximum": 2147483647
82 },
83 "tests": [
84 {
85 "description": "beyond lower boundary",
86 "data": -2147483649,
87 "valid": false
88 },
89 {
90 "description": "lower boundary",
91 "data": -2147483648,
92 "valid": true
93 },
94 {
95 "description": "zero",
96 "data": 0,
97 "valid": true
98 },
99 {
100 "description": "upper boundary",
101 "data": 2147483647,
102 "valid": true
103 },
104 {
105 "description": "beyond upper boundary",
106 "data": 2147483648,
107 "valid": false
108 }
109 ]
110 },
111 {
112 "description": "int64 range checks",
113 "schema": {
114 "$comment": "on some architectures, some of these values may decode to strings",
115 "minimum": -9223372036854775808,
116 "maximum": 9223372036854775807
117 },
118 "tests": [
119 {
120 "description": "beyond lower boundary",
121 "data": -9223372036854775809,
122 "valid": false
123 },
124 {
125 "description": "lower boundary",
126 "data": -9223372036854775808,
127 "valid": true
128 },
129 {
130 "description": "zero",
131 "data": 0,
132 "valid": true
133 },
134 {
135 "description": "upper boundary",
136 "data": 9223372036854775807,
137 "valid": true
138 },
139 {
140 "description": "beyond upper boundary",
141 "data": 9223372036854775808,
142 "valid": false
143 }
144 ]
145 },
146 {
147 "description": "equality checks",
148 "schema": {
149 "$comment": "on some architectures, some of these values may json-decode to strings",
150 "enum": [
151 -9223372036854775809,
152 -9223372036854775808,
153 -2147483649,
154 -2147483648,
155 0,
156 2147483647,
157 2147483648,
158 9223372036854775807,
159 9223372036854775808
160 ]
161 },
162 "tests": [
163 {
164 "description": "beyond int64 lower boundary",
165 "data": -9223372036854775809,
166 "valid": true
167 },
168 {
169 "description": "int64 lower boundary",
170 "data": -9223372036854775808,
171 "valid": true
172 },
173 {
174 "description": "beyond int32 lower boundary",
175 "data": -2147483649,
176 "valid": true
177 },
178 {
179 "description": "int32 lower boundary",
180 "data": -2147483648,
181 "valid": true
182 },
183 {
184 "description": "zero",
185 "data": 0,
186 "valid": true
187 },
188 {
189 "description": "one",
190 "data": 1,
191 "valid": false
192 },
193 {
194 "description": "int32 upper boundary",
195 "data": 2147483647,
196 "valid": true
197 },
198 {
199 "description": "beyond int32 upper boundary",
200 "data": 2147483648,
201 "valid": true
202 },
203 {
204 "description": "int64 upper boundary",
205 "data": 9223372036854775807,
206 "valid": true
207 },
208 {
209 "description": "beyond int64 upper boundary",
210 "data": 9223372036854775808,
211 "valid": true
212 }
213 ]
214 }
215 ]