
    <e                     t    d dl Z d dlmZmZ  G d d          Z G d dee          Z G d dee          ZdS )	    N)PyTestCTestc                   &    e Zd Zd Zd Zd Zd ZdS )	TestFloatc                 F   dt           j        t           j        dz  t           j        dz  dfD ]t}|                     t          |                     |                    |           |                     |                     |                     |                    |           ud S )NgAd   ig@)mathpiassertEqualfloatdumpsloadsselfnums     0/usr/lib/python3.11/test/test_json/test_float.pytest_floatszTestFloat.test_floats   s    &#tw}cR 	? 	?CU4::c??33S999TZZ

388#>>>>	? 	?    c                     dD ]n}|                      |                     |          t          |                     |                      t          |                     |                    |           od S )N)   l        l            )r   r   strintr   s     r   	test_intszTestFloat.test_ints   sl    $ 	8 	8CTZZ__c#hh777SC1137777	8 	8r   c                     |                      |                     d          t          d          g           |                      |                     d          t          d          g           d S )Nz[23456789012E666]infz[-23456789012E666]-inf)r   r   r   )r   s    r   test_out_of_rangezTestFloat.test_out_of_range   s^    $7885<<.III$899E&MM?KKKKKr   c                    t          d          t          d          t          d          fD ]}|                     |g          }||k    r+|                     |                     |          |g           nZ|                     |          }|                     t	          |          d           |                     |d         |d                    |                     t          | j        |gd           d S )Nr   r   nanr   r   F)	allow_nan)r   r   r   r   lenassertNotEqualassertRaises
ValueError)r   valoutress       r   test_allow_nanzTestFloat.test_allow_nan   s    %LL%--u> 	N 	NC**cU##Cczz  C3%8888jjoo  S1---##CFCF333j$*seuMMMM	N 	Nr   N)__name__
__module____qualname__r   r   r   r(    r   r   r   r      sX        ? ? ?
8 8 8
L L L	N 	N 	N 	N 	Nr   r   c                       e Zd ZdS )TestPyFloatNr)   r*   r+   r,   r   r   r.   r.                 r   r.   c                       e Zd ZdS )
TestCFloatNr/   r,   r   r   r2   r2   !   r0   r   r2   )r	   test.test_jsonr   r   r   r.   r2   r,   r   r   <module>r4      s     ( ( ( ( ( ( ( (N N N N N N N N6 + * * * *)V * * * ( ( ( ( (E ( ( ( ( (r   