HEX
Server: Apache
System: Linux bd12.noc223.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: handcraf (1693)
PHP: 8.1.28
Disabled: NONE
Upload Files
File: //opt/alt/python312/lib64/python3.12/test/test_json/__pycache__/test_float.cpython-312.pyc
�

h�e��`�ddlZddlmZmZGd�d�ZGd�dee�ZGd�dee�Zy)	�N)�PyTest�CTestc�$�eZdZd�Zd�Zd�Zd�Zy)�	TestFloatc�0�dtjtjdztjdzdfD]\}|jt|j	|��|�|j|j|j	|��|��^y)Ng���A�di����g������@)�math�pi�assertEqual�float�dumps�loads��self�nums  �@/opt/alt/python312/lib64/python3.12/test/test_json/test_float.py�test_floatszTestFloat.test_floatssn��&�������#��t�w�w��}�c�R�	?�C����U�4�:�:�c�?�3�S�9����T�Z�Z��
�
�3��8�#�>�	?�c��dD]V}|j|j|�t|��|jt|j|��|��Xy)N)�ll)rr
�str�intrs  r�	test_intszTestFloat.test_intssJ��$�	8�C����T�Z�Z��_�c�#�h�7����S����C��1�3�7�	8rc��|j|jd�td�g�|j|jd�td�g�y)Nz[23456789012E666]�infz[-23456789012E666]�-inf)rrr)rs r�test_out_of_rangezTestFloat.test_out_of_rangesB��������$7�8�5��<�.�I�������$8�9�E�&�M�?�Krc��td�td�td�fD]�}|j|g�}||k(r#|j|j|�|g�nD|j|�}|jt	|�d�|j|d|d�d|��}|j
t||j|gd����y)	Nrr�nanrrz2Out of range float values are not JSON compliant: F)�	allow_nan)rr
rr�len�assertNotEqual�assertRaisesRegex�
ValueError)r�val�out�res�msgs     r�test_allow_nanzTestFloat.test_allow_nans����%�L�%��-��u��>�		X�C��*�*�c�U�#�C��c�z�� � ����C��3�%�8��j�j��o��� � ��S��1�-��#�#�C��F�C��F�3�F�s�e�L�C��"�"�:�s�D�J�J���QV�"�W�		XrN)�__name__�
__module__�__qualname__rrrr)�rrrrs��?�
8�
L�
Xrrc��eZdZy)�TestPyFloatN�r*r+r,r-rrr/r/!��rr/c��eZdZy)�
TestCFloatNr0r-rrr3r3"r1rr3)r	�test.test_jsonrrrr/r3r-rr�<module>r5s-���(�X�X�8+�)�V�*�(��E�(r