diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-03-03 19:46:49 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-03-03 19:46:49 +0100 |
commit | 8f43979cf6308c9d7e14a0d87c0faf227e1c4afe (patch) | |
tree | 1fb3d2ac2169a7e31ef977f1ac206b4c728a0347 /tests | |
parent | 9731fb54201375760166aa47f5a8f99f2de77bca (diff) | |
parent | 3546ff88190640b83ace136a9e8abc46b7e1811e (diff) | |
download | Nim-8f43979cf6308c9d7e14a0d87c0faf227e1c4afe.tar.gz |
Merge pull request #2232 from oderwat/upd-strutils
`repeat` instead of `repeatStr` + parameter swapped
Diffstat (limited to 'tests')
-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 |