diff options
author | nigredo-tori <nigredo.tori@gmail.com> | 2016-05-20 12:17:57 +0600 |
---|---|---|
committer | Dmitry Polienko <dmitry@eldis.ru> | 2016-05-20 12:35:34 +0600 |
commit | 85c41a1398b35c7a0dc1e8d0b0bbcede1f5c3862 (patch) | |
tree | 11811abd3eec4396a8609c8ff95ae54d54030c33 /tests | |
parent | 268f25225abab72e197274c31ebfee7ab6dbe0d4 (diff) | |
download | Nim-85c41a1398b35c7a0dc1e8d0b0bbcede1f5c3862.tar.gz |
Fix toJSStr for control characters
fixes #4190 Add leading zero to encoded character if it is less than 0x10
Diffstat (limited to 'tests')
-rw-r--r-- | tests/js/testtojsstr.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/js/testtojsstr.nim b/tests/js/testtojsstr.nim new file mode 100644 index 000000000..c73b80254 --- /dev/null +++ b/tests/js/testtojsstr.nim @@ -0,0 +1,6 @@ +discard """ + output = "" +""" + +let s: string = "И\n" +let cs = s.cstring |