diff options
author | Arne Döring <arne.doering@gmx.net> | 2017-07-24 23:55:30 +0200 |
---|---|---|
committer | Arne Döring <arne.doering@gmx.net> | 2017-07-24 23:55:30 +0200 |
commit | 11914a23bebe4499f4161edb9a421e37a3182abe (patch) | |
tree | 5ac50b9942c277361726c36708fdbf8df1934adc /tests/system | |
parent | a6e6b05565ad717c77d6d66b3c6fd865ad0f615d (diff) | |
download | Nim-11914a23bebe4499f4161edb9a421e37a3182abe.tar.gz |
prevent null characters in $ on collections of char
Diffstat (limited to 'tests/system')
-rw-r--r-- | tests/system/toString.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/system/toString.nim b/tests/system/toString.nim index d002bb379..0eed596ae 100644 --- a/tests/system/toString.nim +++ b/tests/system/toString.nim @@ -47,7 +47,5 @@ doAssert dataStr == $data import strutils # array test let arr = ['H','e','l','l','o',' ','W','o','r','l','d','!','\0'] - -# not sure if this is really a good idea -doAssert startsWith($arr, "[H, e, l, l, o, , W, o, r, l, d, !,") +doAssert $arr == "[H, e, l, l, o, , W, o, r, l, d, !, ]" doAssert $arr.cstring == "Hello World!" |