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

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


��Qc@snddlZddlmZmZdefd��YZdeefd��YZdeefd��YZdS(	i�N(tPyTesttCTesttTestScanstringcBs#eZd�Zd�Zd�ZRS(cCs�|jjj}|j|dddt�d<�tjdkr_|j|dddt�d=�n|j|dddt�d>�|j|d	ddt�d?�|j|dddt�d@�|j|dddt�dA�|j|dddt�dB�|j|dddt�dC�|j|dddt�dD�|j|dddt�dE�|j|dddt�dF�|j|d ddt�dG�|j|d#ddt�dH�|j|d%ddt�dI�|j|d'ddt�dJ�|j|d*ddt�dK�|j|d,ddt�dL�|j|d/ddt�dM�|j|d1ddt�dN�|j|d4ddt�dO�|j|d7ddt�dP�|j|d9ddt�dQ�dS(RNs"z\ud834\udd20x"iuz𝄠xii�u"z𝄠x"iis"\u007b"u{is<"A JSON payload should be an object or array, not a string."u:A JSON payload should be an object or array, not a string.i<s["Unclosed array"iuUnclosed arrayis["extra comma",]uextra commais["double extra comma",,]udouble extra commais["Comma after the close"],uComma after the closeis["Extra close"]]uExtra closes{"Extra comma": true,}uExtra commas:{"Extra value after close": true} "misplaced quoted value"uExtra value after closeis{"Illegal expression": 1 + 2}uIllegal expressions{"Illegal invocation": alert()}uIllegal invocations+{"Numbers cannot have leading zeroes": 013}u"Numbers cannot have leading zeroesi%s{"Numbers cannot be hex": 0x14}uNumbers cannot be hexs2[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]uToo deepis{"Missing colon" null}u
Missing colons{"Double colon":: null}uDouble colonis {"Comma instead of colon", null}uComma instead of colonis!["Colon instead of comma": false]uColon instead of commas["Bad value", truth]u	Bad valuei(uz𝄠xi(uz𝄠xi(uz𝄠xi(u{i(u:A JSON payload should be an object or array, not a string.i<(uUnclosed arrayi(uextra commai(udouble extra commai(uComma after the closei(uExtra closei(uExtra commai(uExtra value after closei(uIllegal expressioni(uIllegal invocationi(u"Numbers cannot have leading zeroesi%(uNumbers cannot be hexi(uToo deepi(u
Missing coloni(uDouble coloni(uComma instead of coloni(uColon instead of commai(u	Bad valuei(tjsontdecodert
scanstringtassertEqualtNonetTruetsyst
maxunicode(tselfR((s0/sys/lib/python2.7/json/tests/test_scanstring.pyttest_scanstrings�
cCsB|jt|jjjddd�|jt|jjjd�dS(Ntxxxisxx�tassertRaisest
ValueErrorRRRtUnicodeDecodeErrortencodertencode_basestring_ascii(R((s0/sys/lib/python2.7/json/tests/test_scanstring.pyttest_issue3623as	cCs7|jt��|jjjdtjd�WdQXdS(NR
i(Rt
OverflowErrorRRRR	tmaxsize(R((s0/sys/lib/python2.7/json/tests/test_scanstring.pyt
test_overflowgs(t__name__t
__module__RRR(((s0/sys/lib/python2.7/json/tests/test_scanstring.pyRs	[	tTestPyScanstringcBseZRS((RR(((s0/sys/lib/python2.7/json/tests/test_scanstring.pyRlstTestCScanstringcBseZRS((RR(((s0/sys/lib/python2.7/json/tests/test_scanstring.pyRms(R	t
json.testsRRtobjectRRR(((s0/sys/lib/python2.7/json/tests/test_scanstring.pyt<module>sg

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.