...
1[
2 {
3 "description": "integer",
4 "schema": {"type": "integer"},
5 "tests": [
6 {
7 "description": "a bignum is an integer",
8 "data": 12345678910111213141516171819202122232425262728293031,
9 "valid": true
10 }
11 ]
12 },
13 {
14 "description": "number",
15 "schema": {"type": "number"},
16 "tests": [
17 {
18 "description": "a bignum is a number",
19 "data": 98249283749234923498293171823948729348710298301928331,
20 "valid": true
21 }
22 ]
23 },
24 {
25 "description": "integer",
26 "schema": {"type": "integer"},
27 "tests": [
28 {
29 "description": "a negative bignum is an integer",
30 "data": -12345678910111213141516171819202122232425262728293031,
31 "valid": true
32 }
33 ]
34 },
35 {
36 "description": "number",
37 "schema": {"type": "number"},
38 "tests": [
39 {
40 "description": "a negative bignum is a number",
41 "data": -98249283749234923498293171823948729348710298301928331,
42 "valid": true
43 }
44 ]
45 },
46 {
47 "description": "string",
48 "schema": {"type": "string"},
49 "tests": [
50 {
51 "description": "a bignum is not a string",
52 "data": 98249283749234923498293171823948729348710298301928331,
53 "valid": false
54 }
55 ]
56 },
57 {
58 "description": "integer comparison",
59 "schema": {"maximum": 18446744073709551615},
60 "tests": [
61 {
62 "description": "comparison works for high numbers",
63 "data": 18446744073709551600,
64 "valid": true
65 }
66 ]
67 },
68 {
69 "description": "float comparison with high precision",
70 "schema": {
71 "exclusiveMaximum": 972783798187987123879878123.18878137
72 },
73 "tests": [
74 {
75 "description": "comparison works for high numbers",
76 "data": 972783798187987123879878123.188781371,
77 "valid": false
78 }
79 ]
80 },
81 {
82 "description": "integer comparison",
83 "schema": {"minimum": -18446744073709551615},
84 "tests": [
85 {
86 "description": "comparison works for very negative numbers",
87 "data": -18446744073709551600,
88 "valid": true
89 }
90 ]
91 },
92 {
93 "description": "float comparison with high precision on negative numbers",
94 "schema": {
95 "exclusiveMinimum": -972783798187987123879878123.18878137
96 },
97 "tests": [
98 {
99 "description": "comparison works for very negative numbers",
100 "data": -972783798187987123879878123.188781371,
101 "valid": false
102 }
103 ]
104 }
105]
View as plain text