symbian-qemu-0.9.1-12/python-2.6.1/Lib/json/tests/test_float.py
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 import math
       
     2 from unittest import TestCase
       
     3 
       
     4 import json
       
     5 
       
     6 class TestFloat(TestCase):
       
     7     def test_floats(self):
       
     8         for num in [1617161771.7650001, math.pi, math.pi**100, math.pi**-100]:
       
     9             self.assertEquals(float(json.dumps(num)), num)