Skip to content

Commit 23f30b8

Browse files
committed
Added test cases for pair node key
1 parent 35126a9 commit 23f30b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ast/print_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ func TestPrint(t *testing.T) {
5757
{`{}`, `{}`},
5858
{`{a: b}`, `{a: b}`},
5959
{`{a: b, c: d}`, `{a: b, c: d}`},
60+
{`{"a": b, 'c': d}`, `{a: b, c: d}`},
61+
{`{"a": b, c: d}`, `{a: b, c: d}`},
62+
{`{"a": b, 8: 8}`, `{a: b, "8": 8}`},
63+
{`{"9": 9, '8': 8, "foo": d}`, `{"9": 9, "8": 8, foo: d}`},
6064
{`[]`, `[]`},
6165
{`[a]`, `[a]`},
6266
{`[a, b]`, `[a, b]`},

0 commit comments

Comments
 (0)