summaryrefslogtreecommitdiff
path: root/json/tests/draft4/optional/bignum.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft4/optional/bignum.json')
-rw-r--r--json/tests/draft4/optional/bignum.json34
1 files changed, 11 insertions, 23 deletions
diff --git a/json/tests/draft4/optional/bignum.json b/json/tests/draft4/optional/bignum.json
index ccc7c17..7a622de 100644
--- a/json/tests/draft4/optional/bignum.json
+++ b/json/tests/draft4/optional/bignum.json
@@ -1,30 +1,13 @@
[
{
"description": "integer",
- "schema": {"type": "integer"},
+ "schema": { "type": "integer" },
"tests": [
{
"description": "a bignum is an integer",
"data": 12345678910111213141516171819202122232425262728293031,
"valid": true
- }
- ]
- },
- {
- "description": "number",
- "schema": {"type": "number"},
- "tests": [
- {
- "description": "a bignum is a number",
- "data": 98249283749234923498293171823948729348710298301928331,
- "valid": true
- }
- ]
- },
- {
- "description": "integer",
- "schema": {"type": "integer"},
- "tests": [
+ },
{
"description": "a negative bignum is an integer",
"data": -12345678910111213141516171819202122232425262728293031,
@@ -34,9 +17,14 @@
},
{
"description": "number",
- "schema": {"type": "number"},
+ "schema": { "type": "number" },
"tests": [
{
+ "description": "a bignum is a number",
+ "data": 98249283749234923498293171823948729348710298301928331,
+ "valid": true
+ },
+ {
"description": "a negative bignum is a number",
"data": -98249283749234923498293171823948729348710298301928331,
"valid": true
@@ -45,7 +33,7 @@
},
{
"description": "string",
- "schema": {"type": "string"},
+ "schema": { "type": "string" },
"tests": [
{
"description": "a bignum is not a string",
@@ -56,7 +44,7 @@
},
{
"description": "integer comparison",
- "schema": {"maximum": 18446744073709551615},
+ "schema": { "maximum": 18446744073709551615 },
"tests": [
{
"description": "comparison works for high numbers",
@@ -81,7 +69,7 @@
},
{
"description": "integer comparison",
- "schema": {"minimum": -18446744073709551615},
+ "schema": { "minimum": -18446744073709551615 },
"tests": [
{
"description": "comparison works for very negative numbers",