Skip to content

Commit 161f307

Browse files
committed
Squashed 'json/' changes from 0ba6722..ddef9b0
ddef9b0 Add a note to the README about running sanity checks. f93cc55 Shorten the descriptions slightly. dd9a876 Merge remote-tracking branch 'fge/develop' into develop bc84af3 Add string length tests for supplementary Unicode code points git-subtree-dir: json git-subtree-split: ddef9b0415461ca948f3c0605e2eb2cc40981b95
1 parent 7496cb3 commit 161f307

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

json/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,7 @@ Contributing
8383
------------
8484

8585
If you see something missing or incorrect, a pull request is most welcome!
86+
87+
There are some sanity checks in place for testing the test suite. You can run
88+
them with `bin/jsonschema_suite check`. They will be run automatically by
89+
[Travis CI](https://travis-ci.org/) as well.

json/tests/draft3/maxLength.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"description": "ignores non-strings",
2323
"data": 10,
2424
"valid": true
25+
},
26+
{
27+
"description": "two supplementary Unicode code points is long enough",
28+
"data": "\uD83D\uDCA9\uD83D\uDCA9",
29+
"valid": true
2530
}
2631
]
2732
}

json/tests/draft3/minLength.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"description": "ignores non-strings",
2323
"data": 1,
2424
"valid": true
25+
},
26+
{
27+
"description": "one supplementary Unicode code point is not long enough",
28+
"data": "\uD83D\uDCA9",
29+
"valid": false
2530
}
2631
]
2732
}

json/tests/draft4/maxLength.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"description": "ignores non-strings",
2323
"data": 10,
2424
"valid": true
25+
},
26+
{
27+
"description": "two supplementary Unicode code points is long enough",
28+
"data": "\uD83D\uDCA9\uD83D\uDCA9",
29+
"valid": true
2530
}
2631
]
2732
}

json/tests/draft4/minLength.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"description": "ignores non-strings",
2323
"data": 1,
2424
"valid": true
25+
},
26+
{
27+
"description": "one supplementary Unicode code point is not long enough",
28+
"data": "\uD83D\uDCA9",
29+
"valid": false
2530
}
2631
]
2732
}

0 commit comments

Comments
 (0)