|
1 | 1 | [ |
2 | 2 | { |
3 | 3 | "description": "integer", |
4 | | - "schema": {"type": "integer"}, |
| 4 | + "schema": { "type": "integer" }, |
5 | 5 | "tests": [ |
6 | 6 | { |
7 | 7 | "description": "a bignum is an integer", |
8 | 8 | "data": 12345678910111213141516171819202122232425262728293031, |
9 | 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": [ |
| 10 | + }, |
28 | 11 | { |
29 | 12 | "description": "a negative bignum is an integer", |
30 | 13 | "data": -12345678910111213141516171819202122232425262728293031, |
|
34 | 17 | }, |
35 | 18 | { |
36 | 19 | "description": "number", |
37 | | - "schema": {"type": "number"}, |
| 20 | + "schema": { "type": "number" }, |
38 | 21 | "tests": [ |
| 22 | + { |
| 23 | + "description": "a bignum is a number", |
| 24 | + "data": 98249283749234923498293171823948729348710298301928331, |
| 25 | + "valid": true |
| 26 | + }, |
39 | 27 | { |
40 | 28 | "description": "a negative bignum is a number", |
41 | 29 | "data": -98249283749234923498293171823948729348710298301928331, |
|
45 | 33 | }, |
46 | 34 | { |
47 | 35 | "description": "string", |
48 | | - "schema": {"type": "string"}, |
| 36 | + "schema": { "type": "string" }, |
49 | 37 | "tests": [ |
50 | 38 | { |
51 | 39 | "description": "a bignum is not a string", |
|
55 | 43 | ] |
56 | 44 | }, |
57 | 45 | { |
58 | | - "description": "integer comparison", |
59 | | - "schema": {"maximum": 18446744073709551615}, |
| 46 | + "description": "maximum integer comparison", |
| 47 | + "schema": { "maximum": 18446744073709551615 }, |
60 | 48 | "tests": [ |
61 | 49 | { |
62 | 50 | "description": "comparison works for high numbers", |
|
80 | 68 | ] |
81 | 69 | }, |
82 | 70 | { |
83 | | - "description": "integer comparison", |
84 | | - "schema": {"minimum": -18446744073709551615}, |
| 71 | + "description": "minimum integer comparison", |
| 72 | + "schema": { "minimum": -18446744073709551615 }, |
85 | 73 | "tests": [ |
86 | 74 | { |
87 | 75 | "description": "comparison works for very negative numbers", |
|
0 commit comments