Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ TestBadCeil
Class
TestBadCeil
Lib/test/test_math.py:428–429 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
426
class
TestNoCeil:
427
pass
428
class
TestBadCeil:
429
__ceil__ = BadDescr()
430
self.assertEqual(math.ceil(TestCeil()), 42)
431
self.assertEqual(math.ceil(FloatCeil()), 42)
432
self.assertEqual(math.ceil(FloatLike(42.5)), 43)
Callers
1
testCeil
Method · 0.85
Calls
1
BadDescr
Class · 0.85
Tested by
1
testCeil
Method · 0.68