mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add tests for math.modf
This commit is contained in:
1 parent
c4db8d6538
commit
650a9b2255
1 file changed
+6
@@ -112,3 +112,9 @@ assert math.factorial(3) == 6
|
||||
assert math.factorial(10) == 3628800
|
||||
assert math.factorial(20) == 2432902008176640000
|
||||
assert_raises(ValueError, lambda: math.factorial(-1))
|
||||
|
||||
assert math.modf(1.25) == (0.25, 1.0)
|
||||
assert math.modf(-1.25) == (-0.25, -1.0)
|
||||
assert math.modf(2.56) == (0.56, 2.0)
|
||||
assert math.modf(-2.56) == (-0.56, -2.0)
|
||||
assert math.modf(1) == (0.0, 1.0)
|
||||
Reference in new issue
Block a user