Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ TestBadFloor
Class
TestBadFloor
Lib/test/test_math.py:586–587 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
584
class
TestNoFloor:
585
pass
586
class
TestBadFloor:
587
__floor__ = BadDescr()
588
self.assertEqual(math.floor(TestFloor()), 42)
589
self.assertEqual(math.floor(FloatFloor()), 42)
590
self.assertEqual(math.floor(FloatLike(41.9)), 41)
Callers
1
testFloor
Method · 0.85
Calls
1
BadDescr
Class · 0.85
Tested by
1
testFloor
Method · 0.68