Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/json/tests/test_float.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��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(	RRRRtlentassertNotEqualtassertRaisest
ValueErrortFalse(R
tvaltouttres((s+/sys/lib/python2.7/json/tests/test_float.pyttest_allow_nans((t__name__t
__module__RRRR(((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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.