��Qc@snddlZddlmZmZdefd��YZdeefd��YZdeefd��YZdS( i�N(tPyTesttCTestt TestFloatcBs,eZd�Zd�Zd�Zd�ZRS(cCs�x�dtjtjdtjddgD]o}|jt|j|��|�|j|j|j|��|�|j|jt|j|���|�q'WdS(Ng���idi�����@(tmathtpitassertEqualtfloattdumpstloadstunicode(tselftnum((s+/sys/lib/python2.7/json/tests/test_float.pyttest_floatss
"cCs�x�ddddgD]�}|j|j|�t|��|jt|j|��|�|j|j|j|��|�|j|jt|j|���|�qWdS(Nili i@ll(RRtstrtintRR (R
R((s+/sys/lib/python2.7/json/tests/test_float.pyt test_ints
s
"cCsH|j|jd�td�g�|j|jd�td�g�dS(Ns[23456789012E666]tinfs[-23456789012E666]s-inf(RRR(R
((s+/sys/lib/python2.7/json/tests/test_float.pyttest_out_of_ranges"cCs�x�td�td�td�fD]�}|j|g�}||kre|j|j|�|g�n=|j|�}|jt|�d�|j|d|d�|jt|j|gdt�q"WdS(NRs-inftnaniit allow_nan( RRRRtlentassertNotEqualtassertRaisest
ValueErrortFalse(R
tvaltouttres((s+/sys/lib/python2.7/json/tests/test_float.pyttest_allow_nans((t__name__t
__module__RRRR(((s+/sys/lib/python2.7/json/tests/test_float.pyRs tTestPyFloatcBseZRS((RR(((s+/sys/lib/python2.7/json/tests/test_float.pyR$st
TestCFloatcBseZRS((RR(((s+/sys/lib/python2.7/json/tests/test_float.pyR %s(Rt
json.testsRRtobjectRRR (((s+/sys/lib/python2.7/json/tests/test_float.pyt<module>s
|