diff options
author | Hans Raaf <hara@oderwat.de> | 2015-02-28 18:14:43 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2015-03-03 16:37:54 +0100 |
commit | 3546ff88190640b83ace136a9e8abc46b7e1811e (patch) | |
tree | 64049a91fb47290458fde5ab1f96de746dc8ac6c /tests/stdlib/tstrutil.nim | |
parent | b870744d5de2c5682e07add0bbce9d5584ea5892 (diff) | |
download | Nim-3546ff88190640b83ace136a9e8abc46b7e1811e.tar.gz |
Replaced repeatStr() and repeatChar() with more natural versions.
Diffstat (limited to 'tests/stdlib/tstrutil.nim')
-rw-r--r-- | tests/stdlib/tstrutil.nim | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/stdlib/tstrutil.nim b/tests/stdlib/tstrutil.nim index ce9094bc0..3db484faa 100644 --- a/tests/stdlib/tstrutil.nim +++ b/tests/stdlib/tstrutil.nim @@ -46,7 +46,13 @@ assert "/1/2/3".rfind('0') == -1 assert(toHex(100i16, 32) == "00000000000000000000000000000064") assert(toHex(-100i16, 32) == "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9C") -main() -#OUT ha/home/a1xyz/usr/bin +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 |