Replaced repeatStr() and repeatChar() with more natural versions.
This commit is contained in:
parent
b870744d5d
commit
3546ff8819
2 changed files with 39 additions and 12 deletions
|
|
@ -46,7 +46,13 @@ assert "/1/2/3".rfind('0') == -1
|
|||
assert(toHex(100i16, 32) == "00000000000000000000000000000064")
|
||||
assert(toHex(-100i16, 32) == "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9C")
|
||||
|
||||
assert(' '.repeat(8)== " ")
|
||||
assert(" ".repeat(8) == " ")
|
||||
assert(spaces(8) == " ")
|
||||
|
||||
assert(' '.repeat(0) == "")
|
||||
assert(" ".repeat(0) == "")
|
||||
assert(spaces(0) == "")
|
||||
|
||||
main()
|
||||
#OUT ha/home/a1xyz/usr/bin
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue