summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
Diffstat (limited to 'json')
-rw-r--r--json/tests/draft2019-09/type.json5
-rw-r--r--json/tests/draft3/type.json5
-rw-r--r--json/tests/draft4/type.json5
-rw-r--r--json/tests/draft6/type.json5
-rw-r--r--json/tests/draft7/type.json5
5 files changed, 25 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/type.json b/json/tests/draft2019-09/type.json
index 05e0808..8304647 100644
--- a/json/tests/draft2019-09/type.json
+++ b/json/tests/draft2019-09/type.json
@@ -60,6 +60,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number (and an integer)",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft3/type.json b/json/tests/draft3/type.json
index 49c9b40..f962cc3 100644
--- a/json/tests/draft3/type.json
+++ b/json/tests/draft3/type.json
@@ -55,6 +55,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft4/type.json b/json/tests/draft4/type.json
index ea33b18..df46677 100644
--- a/json/tests/draft4/type.json
+++ b/json/tests/draft4/type.json
@@ -55,6 +55,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft6/type.json b/json/tests/draft6/type.json
index 05e0808..8304647 100644
--- a/json/tests/draft6/type.json
+++ b/json/tests/draft6/type.json
@@ -60,6 +60,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number (and an integer)",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true
diff --git a/json/tests/draft7/type.json b/json/tests/draft7/type.json
index 05e0808..8304647 100644
--- a/json/tests/draft7/type.json
+++ b/json/tests/draft7/type.json
@@ -60,6 +60,11 @@
"valid": true
},
{
+ "description": "a float with zero fractional part is a number (and an integer)",
+ "data": 1.0,
+ "valid": true
+ },
+ {
"description": "a float is a number",
"data": 1.1,
"valid": true