FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-rapidjson/tests/test_pass2.py at master · python-rapidjson/python-rapidjson · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-rapidjson
/
python-rapidjson
Public
Notifications
You must be signed in to change notification settings
Fork
53
Star
532
Code
Issues
18
Pull requests
4
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-rapidjson
/
tests
/
test_pass2.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 493 Bytes
Breadcrumbs
python-rapidjson
/
tests
/
test_pass2.py
Copy path
File metadata and controls
18 lines (16 loc) · 493 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- coding: utf-8 -*-
# :Project: python-rapidjson -- Compliance tests
# :Author: John Anderson <sontek@gmail.com>
# :License: MIT License
# :Copyright: © 2015 John Anderson
# :Copyright: © 2017, 2020 Lele Gaifax
#
# from http://json.org/JSON_checker/test/pass2.json
JSON
=
r'''
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
'''
def
test_parse
(
dumps
,
loads
):
# test in/out equivalence and parsing
res
=
loads
(
JSON
)
out
=
dumps
(
res
)
assert
res
==
loads
(
out
)
Back
|
FazBrowse Home
|
New Git URL