Skip to content
Snippets Groups Projects
Commit 291a1dd50bea authored by Bob Ippolito's avatar Bob Ippolito
Browse files

failing test for long, thanks @djco

git-svn-id: http://simplejson.googlecode.com/svn/trunk@133 a4795897-2c25-0410-b006-0d3caba88fa1
parent 612e79b05583
No related branches found
No related tags found
No related merge requests found
...@@ -7,3 +7,8 @@ ...@@ -7,3 +7,8 @@
def test_floats(self): def test_floats(self):
for num in [1617161771.7650001, math.pi, math.pi**100, math.pi**-100]: for num in [1617161771.7650001, math.pi, math.pi**100, math.pi**-100]:
self.assertEquals(float(S.dumps(num)), num) self.assertEquals(float(S.dumps(num)), num)
def test_ints(self):
for num in [1, 1L, 1<<32, 1<<64]:
self.assertEquals(S.dumps(num), str(num))
self.assertEquals(int(S.dumps(num)), num)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment