mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
Merge pull request #946 from stwen77/fix_floor_div
fix floor div for int
This commit is contained in:
@@ -64,6 +64,10 @@ assert (2).__rtruediv__(1.0) == NotImplemented
|
||||
assert (2).__pow__(3.0) == NotImplemented
|
||||
assert (2).__rpow__(3.0) == NotImplemented
|
||||
|
||||
assert 10 // 4 == 2
|
||||
assert -10 // 4 == -3
|
||||
assert 10 // -4 == -3
|
||||
assert -10 // -4 == 2
|
||||
|
||||
assert int() == 0
|
||||
assert int("101", 2) == 5
|
||||
|
||||
Reference in New Issue
Block a user