Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a test case for the long int overflow issue

Change-Id: I63a3b9393fa486ea55165ad17e4b3ecb787d980f
http://github.com/rtyler/py-yajl/issues#issue/16
  • Loading branch information...
commit 9e0c781b21d4c63b31df8ab09cb1a64a83f3fbc6 1 parent b8204ae
@rtyler authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/unit.py
View
9 tests/unit.py
@@ -294,6 +294,15 @@ def runTest(self):
from tests import python2
self.assertEquals(yajl.dumps(python2.IssueTwelveTest_dict), '{"a":"b","c":"d"}')
+class IssueSixteenTest(unittest.TestCase):
+ def runTest(self):
+ dumpable = [11889582081]
+
+ rc = yajl.dumps(dumpable)
+ self.assertEquals(rc, '[11889582081]')
+ rc = yajl.loads(rc)
+ self.assertEquals(rc, dumpable)
+
if __name__ == '__main__':
verbosity = '-v' in sys.argv and 2 or 1
runner = unittest.TextTestRunner(verbosity=verbosity)
Please sign in to comment.
Something went wrong with that request. Please try again.