MCPcopy Create free account
hub / github.com/ipython/ipython / test_lazy_eval_float

Method test_lazy_eval_float

IPython/core/tests/test_prompts.py:23–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 self.assertEqual(format(lz), str(b))
22
23 def test_lazy_eval_float(self):
24 f = 0.503
25 lz = LazyEvaluate(lambda : f)
26
27 self.assertEqual(str(lz), str(f))
28 self.assertEqual(format(lz), str(f))
29 self.assertEqual(format(lz, '.1'), '0.5')
30

Callers

nothing calls this directly

Calls 1

LazyEvaluateClass · 0.90

Tested by

no test coverage detected