a  ze@sNddlZddlmZmZGdddZGdddeeZGdddeeZdS) N)PyTestCTestc@s,eZdZddZddZddZddZd S) TestFloatcCsTdtjtjdtjddfD]2}|t||||||||qdS)NgAdig@)mathpi assertEqualfloatdumpsloadsselfnumrM/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_json/test_float.py test_floatss zTestFloat.test_floatscCs:dD]0}|||t||t|||qdS)N)ll)rr strintr rrr test_ints szTestFloat.test_intscCs4||dtdg||dtdgdS)Nz[23456789012E666]infz[-23456789012E666]-inf)rr r )r rrrtest_out_of_rangeszTestFloat.test_out_of_rangecCstdtdtdfD]r}||g}||krD||||gn.||}|t|d||d|d|jt|j|gddqdS)NrrnanrrF)Z allow_nan)r r rr lenZassertNotEqualZ assertRaises ValueError)r valoutresrrrtest_allow_nans  zTestFloat.test_allow_nanN)__name__ __module__ __qualname__rrrrrrrrrsrc@s eZdZdS) TestPyFloatNr r!r"rrrrr# r#c@s eZdZdS) TestCFloatNr$rrrrr&!r%r&)rZtest.test_jsonrrrr#r&rrrrs