Skip to content

Commit af1a2f3

Browse files
committed
Expanded tests for JSON example.
1 parent 1a4dce6 commit af1a2f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/json.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,19 @@ def test():
5050
"int": 1,
5151
"string": "hello",
5252
"a list": [1, 2, 3],
53-
"escapes": "\n",
54-
"nested": {"x": "y"}
53+
"escapes": "\n \u24D2",
54+
"nested": {"x": "y"},
55+
"other": [true, false, null]
5556
}
5657
"""
5758
)
5859
== {
5960
"int": 1,
6061
"string": "hello",
6162
"a list": [1, 2, 3],
62-
"escapes": "\n",
63+
"escapes": "\n",
6364
"nested": {"x": "y"},
65+
"other": [True, False, None],
6466
}
6567
)
6668

0 commit comments

Comments
 (0)