• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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                "description": "a negative bignum is an integer",
13                "data": -12345678910111213141516171819202122232425262728293031,
14                "valid": true
15            }
16        ]
17    },
18    {
19        "description": "number",
20        "schema": { "type": "number" },
21        "tests": [
22            {
23                "description": "a bignum is a number",
24                "data": 98249283749234923498293171823948729348710298301928331,
25                "valid": true
26            },
27            {
28                "description": "a negative bignum is a number",
29                "data": -98249283749234923498293171823948729348710298301928331,
30                "valid": true
31            }
32        ]
33    },
34    {
35        "description": "string",
36        "schema": { "type": "string" },
37        "tests": [
38            {
39                "description": "a bignum is not a string",
40                "data": 98249283749234923498293171823948729348710298301928331,
41                "valid": false
42            }
43        ]
44    },
45    {
46        "description": "maximum integer comparison",
47        "schema": { "maximum": 18446744073709551615 },
48        "tests": [
49            {
50                "description": "comparison works for high numbers",
51                "data": 18446744073709551600,
52                "valid": true
53            }
54        ]
55    },
56    {
57        "description": "float comparison with high precision",
58        "schema": {
59            "maximum": 972783798187987123879878123.18878137,
60            "exclusiveMaximum": true
61        },
62        "tests": [
63            {
64                "description": "comparison works for high numbers",
65                "data": 972783798187987123879878123.188781371,
66                "valid": false
67            }
68        ]
69    },
70    {
71        "description": "minimum integer comparison",
72        "schema": { "minimum": -18446744073709551615 },
73        "tests": [
74            {
75                "description": "comparison works for very negative numbers",
76                "data": -18446744073709551600,
77                "valid": true
78            }
79        ]
80    },
81    {
82        "description": "float comparison with high precision on negative numbers",
83        "schema": {
84            "minimum": -972783798187987123879878123.18878137,
85            "exclusiveMinimum": true
86        },
87        "tests": [
88            {
89                "description": "comparison works for very negative numbers",
90                "data": -972783798187987123879878123.188781371,
91                "valid": false
92            }
93        ]
94    }
95]
96