Skip to content

Commit d964fa4

Browse files
committed
bignum.json: add a real number test
The only test was to recognize a number as an integer. Add a test to check a mathematical operation on such a numer. And take a float.
1 parent 2c8e33d commit d964fa4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/draft3/optional/bignum.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,19 @@
99
"valid": true
1010
}
1111
]
12+
},
13+
{
14+
"description": "float comparison with high precision",
15+
"schema": {
16+
"maximum": 972783798187987123879878123.18878137,
17+
"exclusiveMaximum": true
18+
},
19+
"tests": [
20+
{
21+
"description": "comparison works for high numbers",
22+
"data": 972783798187987123879878123.188781371,
23+
"valid": false
24+
}
25+
]
1226
}
1327
]

0 commit comments

Comments
 (0)