HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/simplejson/tests/__pycache__/test_float.cpython-38.pyc
U

�O5[��@sTddlZddlmZddlmZmZddlZddlm	Z	m
Z
mZGdd�de�ZdS)�N)�TestCase)�	long_type�	text_type)�NaN�PosInf�NegInfc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�	TestFloatcCsLttfD]}|�t�t�|��|�qt�t�t��}|�d||k�dS)Nr)rr�assertEqual�json�loads�dumpsrZ
assertTrue)�self�inf�nan�r�=/usr/lib/python3/dist-packages/simplejson/tests/test_float.py�test_degenerates_allowsz TestFloat.test_degenerates_allowc	Cs0tttfD] }|�t�tj|dd��d�q
dS)NT)Z
ignore_nan)rrrr	r
rr�r
�frrr�test_degenerates_ignoresz!TestFloat.test_degenerates_ignorecCs(tttfD]}|jttj|dd�q
dS)NF)Z	allow_nan)rrrZassertRaises�
ValueErrorr
rrrrr�test_degenerates_denyszTestFloat.test_degenerates_denyc	CspdtjtjdtjddfD]N}|�tt�|��|�|�t�t�|��|�|�t�tt�|���|�qdS)Ng���A�di����g������@)�mathZpir	�floatr
rrr�r
Znumrrr�test_floatss�zTestFloat.test_floatsc	Cszdtd�ddfD]d}|�t�|�t|��|�tt�|��|�|�t�t�|��|�|�t�tt�|���|�qdS)N�ll)rr	r
r�str�intrrrrrr�	test_intss
zTestFloat.test_intsN)�__name__�
__module__�__qualname__rrrrr rrrrrs
r)
rZunittestrZsimplejson.compatrrZ
simplejsonr
Zsimplejson.decoderrrrrrrrr�<module>s