HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/test_json/__pycache__/test_float.cpython-310.opt-1.pyc
o

�i��@sNddlZddlmZmZGdd�d�ZGdd�dee�ZGdd�dee�ZdS)	�N)�PyTest�CTestc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�	TestFloatcCsTdtjtjdtjddfD]}|�t|�|��|�|�|�|�|��|�qdS)Ng���A�di����g������@)�math�pi�assertEqual�float�dumps�loads��self�num�r�6/usr/local/lib/python3.10/test/test_json/test_float.py�test_floatss �zTestFloat.test_floatscCs:dD]}|�|�|�t|��|�t|�|��|�qdS)N)�ll)rr
�str�intrrrr�	test_intss�zTestFloat.test_intscCs4|�|�d�td�g�|�|�d�td�g�dS)Nz[23456789012E666]�infz[-23456789012E666]�-inf)rrr	)r
rrr�test_out_of_rangeszTestFloat.test_out_of_rangecCs�td�td�td�fD]9}|�|g�}||kr"|�|�|�|g�n|�|�}|�t|�d�|�|d|d�|jt|j|gdd�qdS)Nrr�nanrrF)Z	allow_nan)r	r
rr�lenZassertNotEqualZassertRaises�
ValueError)r
�val�out�resrrr�test_allow_nans
�zTestFloat.test_allow_nanN)�__name__�
__module__�__qualname__rrrrrrrrrs
rc@�eZdZdS)�TestPyFloatN�r r!r"rrrrr$ �r$c@r#)�
TestCFloatNr%rrrrr'!r&r')rZtest.test_jsonrrrr$r'rrrr�<module>s