MCPcopy Create free account
hub / github.com/simplejson/simplejson / test_float_range

Method test_float_range

simplejson/tests/test_float.py:41–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 self.assertEqual(json.loads(text_type(json.dumps(num))), num)
40
41 def test_float_range(self):
42 try:
43 float_range = [sys.float_info.min, sys.float_info.max]
44 except AttributeError:
45 float_range = [2.2250738585072014e-308, 1.7976931348623157e+308]
46 self.assertEqual(json.loads(json.dumps(float_range)), float_range)

Callers

nothing calls this directly

Calls 2

loadsMethod · 0.80
dumpsMethod · 0.80

Tested by

no test coverage detected