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

Method test_float

simplejson/tests/test_decode.py:24–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.assertEqual(rval, decimal.Decimal('1.1'))
23
24 def test_float(self):
25 rval = json.loads('1', parse_int=float)
26 self.assertTrue(isinstance(rval, float))
27 self.assertEqual(rval, 1.0)
28
29 def test_decoder_optimizations(self):
30 # Several optimizations were made that skip over calls to

Callers

nothing calls this directly

Calls 1

loadsMethod · 0.80

Tested by

no test coverage detected