Skip to content

Commit 533559c

Browse files
committed
Import test data from json5/json5@c58c026
Signed-off-by: Jonathan Rudenberg <[email protected]>
1 parent aaa3d0c commit 533559c

File tree

124 files changed

+529
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+529
-0
lines changed

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Decoder code based on package encoding/json from the Go language.
2+
13
Copyright (c) 2012 The Go Authors. All rights reserved.
24

35
Redistribution and use in source and binary forms, with or without
@@ -25,3 +27,28 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2527
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2628
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2729
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30+
31+
32+
33+
Test data based on the parse cases from https://github.com/json5/json5
34+
35+
Copyright (c) 2012-2016 Aseem Kishore, and others.
36+
37+
Permission is hereby granted, free of charge, to any person obtaining
38+
a copy of this software and associated documentation files (the
39+
"Software"), to deal in the Software without restriction, including
40+
without limitation the rights to use, copy, modify, merge, publish,
41+
distribute, sublicense, and/or sell copies of the Software, and to
42+
permit persons to whom the Software is furnished to do so, subject to
43+
the following conditions:
44+
45+
The above copyright notice and this permission notice shall be
46+
included in all copies or substantial portions of the Software.
47+
48+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

testdata/arrays/empty-array.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
,null
3+
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
,
3+
]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
at: 16,
3+
lineNumber: 3,
4+
columnNumber: 5,
5+
message: "Expected ']' instead of 'f'"
6+
}

testdata/arrays/no-comma-array.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
true
3+
false
4+
]

testdata/arrays/regular-array.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
true,
3+
false,
4+
null
5+
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
null,
3+
]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
false
3+
/*
4+
true
5+
*/
6+
]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
null
2+
/*
3+
Some non-comment top-level value is needed;
4+
we use null above.
5+
*/

0 commit comments

Comments
 (0)