Skip to content

Commit 6b48c52

Browse files
committed
Move "1.0 is not an integer" to the optional tests section
Thanks to some brain damaged languages, and given what section 5.5 says, this test has to go in this section. What on earth was ECMA thinking, I wonder. Solves issue #22.
1 parent 9674e70 commit 6b48c52

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"description": "brain damaged languages don't recognize floats as such",
4+
"schema": {
5+
"type": "integer"
6+
},
7+
"tests": [
8+
{
9+
"description": "a float is not an integer even without fractional part",
10+
"data": 1.0,
11+
"valid": false
12+
}
13+
}
14+
]

tests/draft3/type.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
"data": 1.1,
1414
"valid": false
1515
},
16-
{
17-
"description": "a float is not an integer even without fractional part",
18-
"data": 1.0,
19-
"valid": false
20-
},
2116
{
2217
"description": "a string is not an integer",
2318
"data": "foo",

0 commit comments

Comments
 (0)