DEBSOURCES
Skip Quicknav
sources / pyamf / 0.6.1%2Bdfsg-3 / doc / tutorials / examples / gateways / appengine / demo / simplejson / tests / test_float.py
123456
import simplejson import math def test_floats(): for num in [1617161771.7650001, math.pi, math.pi**100, math.pi**-100]: assert float(simplejson.dumps(num)) == num