mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
Merge pull request #997 from ZapAnton/objstr_refactor_mul
objstr: Refactored the 'mul' method
This commit is contained in:
@@ -37,6 +37,8 @@ assert 3 * "xy" == "xyxyxy"
|
||||
assert 0 * "x" == ""
|
||||
assert -1 * "x" == ""
|
||||
|
||||
assert_raises(OverflowError, lambda: 'xy' * 234234234234234234234234234234)
|
||||
|
||||
a = 'Hallo'
|
||||
assert a.lower() == 'hallo'
|
||||
assert a.upper() == 'HALLO'
|
||||
|
||||
Reference in New Issue
Block a user