Skip to content

Commit 3779fab

Browse files
committed
Resolves #124 Test that we can parse array\![]
1 parent 083a571 commit 3779fab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/parse.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ fn parse_array() {
118118
true,
119119
Null
120120
]);
121+
122+
assert_eq!(parse("[]").unwrap(), array![]);
123+
124+
assert_eq!(parse("[[]]").unwrap(), array![array![]]);
121125
}
122126

123127
#[test]

0 commit comments

Comments
 (0)