summary refs log tree commit diff stats
path: root/tests/system
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2017-08-07 18:21:21 +0200
committerArne Döring <arne.doering@gmx.net>2017-08-07 18:21:21 +0200
commit54808ab12fcbf8cc253129ed03f560fc6dd2648e (patch)
treef87094474da3df24bd94b393dcbe838290ed13a5 /tests/system
parent3bf1f019a76c6fee5553a7daf7d984cfd39cfb04 (diff)
downloadNim-54808ab12fcbf8cc253129ed03f560fc6dd2648e.tar.gz
don't filter '\0' characters in string generation
Diffstat (limited to 'tests/system')
-rw-r--r--tests/system/toString.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/system/toString.nim b/tests/system/toString.nim
index 0eed596ae..377336c90 100644
--- a/tests/system/toString.nim
+++ b/tests/system/toString.nim
@@ -46,6 +46,7 @@ doAssert dataStr == $data
 
 import strutils
 # array test
+
 let arr = ['H','e','l','l','o',' ','W','o','r','l','d','!','\0']
-doAssert $arr == "[H, e, l, l, o,  , W, o, r, l, d, !, ]"
+doAssert $arr == "[H, e, l, l, o,  , W, o, r, l, d, !, \0]"
 doAssert $arr.cstring == "Hello World!"