diff options
author | Araq <rumpf_a@web.de> | 2018-09-03 08:37:32 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-03 08:37:32 +0200 |
commit | fa338768a3f6aac03e4c76bcfdd660716a9bf926 (patch) | |
tree | 8198dda07dc25281ca786ca4c756dc98f913596b /tests/system | |
parent | dc67dd3bef80bec6f91961347ed3c45af7b2b5c9 (diff) | |
download | Nim-fa338768a3f6aac03e4c76bcfdd660716a9bf926.tar.gz |
fixes #8847
Diffstat (limited to 'tests/system')
-rw-r--r-- | tests/system/tostring.nim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/system/tostring.nim b/tests/system/tostring.nim index 42c07c0a4..04b37f133 100644 --- a/tests/system/tostring.nim +++ b/tests/system/tostring.nim @@ -106,4 +106,12 @@ var nilstring: string bar(nilstring) static: - stringCompare() \ No newline at end of file + stringCompare() + +# bug 8847 +var a2: cstring = "fo\"o2" + +block: + var s: string + s.addQuoted a2 + doAssert s == "\"fo\\\"o2\"" |