Created
July 28, 2013 02:31
-
-
Save sirpengi/6097113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"v": 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simplejson | |
import math | |
target = math.factorial(100) | |
with open('test.json') as fh: | |
data = simplejson.loads(fh.read()) | |
print data | |
assert data['v'] == target | |
assert data['v'] != (target + 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment