This commit is contained in:
Andreas Rumpf 2018-09-16 12:28:32 +02:00
commit 0330fb2e13
2 changed files with 22 additions and 7 deletions

View file

@ -309,5 +309,20 @@ assert(' '.repeat(0) == "")
assert(" ".repeat(0) == "")
assert(spaces(0) == "")
# bug #8911
when true:
static:
let a = ""
let a2 = a.replace("\n", "\\n")
when true:
static:
let b = "b"
let b2 = b.replace("\n", "\\n")
when true:
let c = ""
let c2 = c.replace("\n", "\\n")
main()
#OUT ha/home/a1xyz/usr/bin