Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustPython/RustPython
/ TestNoFloor
Class
TestNoFloor
Lib/test/test_math.py:584–585 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
582
def
__floor__(self):
583
return
42
584
class
TestNoFloor:
585
pass
586
class
TestBadFloor:
587
__floor__ = BadDescr()
588
self.assertEqual(math.floor(TestFloor()), 42)
Callers
1
testFloor
Method · 0.85
Calls
no outgoing calls
Tested by
1
testFloor
Method · 0.68