equal
deleted
inserted
replaced
|
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) |