Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/json/tests/test_fail.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc"@s�ddlmZmZdddddddd	d
ddd
ddddddddddddddddddd d!d"d#g"Zid$d%6d&d'6Zd(efd)��YZd*eefd+��YZd,eefd-��YZd.S(/i�(tPyTesttCTests<"A JSON payload should be an object or array, not a string."s["Unclosed array"s%{unquoted_key: "keys must be quoted"}s["extra comma",]s["double extra comma",,]s[   , "<-- missing value"]s["Comma after the close"],s["Extra close"]]s{"Extra comma": true,}s:{"Extra value after close": true} "misplaced quoted value"s{"Illegal expression": 1 + 2}s{"Illegal invocation": alert()}s+{"Numbers cannot have leading zeroes": 013}s{"Numbers cannot be hex": 0x14}s"["Illegal backslash escape: \x15"]s[\naked]s"["Illegal backslash escape: \017"]s2[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]s{"Missing colon" null}s{"Double colon":: null}s {"Comma instead of colon", null}s!["Colon instead of comma": false]s["Bad value", truth]s['single quote']s["	tab	character	in	string	"]s&["tab\   character\   in\  string\  "]s["line
break"]s["line\
break"]s[0e]s[0e+]s[0e+-1]s({"Comma instead if closing brace": true,s["mismatch"}u$["AZ control characters in string"]swhy not have a string payload?is,spec doesn't specify any nesting limitationsitTestFailcBseZd�Zd�ZRS(cCs�x�tt�D]s\}}|d}|tkrB|j|�q
ny|j|�Wntk
rfq
X|jdj||��q
WdS(Nis(Expected failure for fail{0}.json: {1!r}(t	enumeratetJSONDOCStSKIPStloadst
ValueErrortfailtformat(tselftidxtdoc((s*/sys/lib/python2.7/json/tests/test_fail.pyt
test_failuresQs


cCsJidd6dd6}|jt|j|�|jt|j|dt�dS(Nitaitindent(ii(tassertRaisest	TypeErrortdumpstTrue(R
tdata((s*/sys/lib/python2.7/json/tests/test_fail.pyttest_non_string_keys_dict^s(t__name__t
__module__R
R(((s*/sys/lib/python2.7/json/tests/test_fail.pyRPs	
t
TestPyFailcBseZRS((RR(((s*/sys/lib/python2.7/json/tests/test_fail.pyRhst	TestCFailcBseZRS((RR(((s*/sys/lib/python2.7/json/tests/test_fail.pyRisN(	t
json.testsRRRRtobjectRRR(((s*/sys/lib/python2.7/json/tests/test_fail.pyt<module>sP	


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].