Skip to content

Instantly share code, notes, and snippets.

@sirpengi
Created July 28, 2013 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirpengi/6097113 to your computer and use it in GitHub Desktop.
Save sirpengi/6097113 to your computer and use it in GitHub Desktop.
{
"v": 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
}
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