diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-10-29 12:01:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 12:01:22 +0100 |
commit | 5ebd111f7f2a920e5eb657e5828eb8ad845591fa (patch) | |
tree | 0917801bf9ba4f212efbcab28568f1d8f4b678c6 | |
parent | 9fd0a71e4d4c6b3d451a137372973dcb4f4b47cc (diff) | |
parent | f4149ae535853288ee07ed43e4d86de62501c387 (diff) | |
download | Nim-5ebd111f7f2a920e5eb657e5828eb8ad845591fa.tar.gz |
Merge pull request #9541 from narimiran/fix-6986
Closes #6986
-rw-r--r-- | tests/cpp/t6986.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cpp/t6986.nim b/tests/cpp/t6986.nim new file mode 100644 index 000000000..ffd277adb --- /dev/null +++ b/tests/cpp/t6986.nim @@ -0,0 +1,16 @@ +discard """ + targets: "cpp" + action: "compile" +""" + +import sequtils, strutils + + +let rules = toSeq(lines("input")) + .mapIt(it.split(" => ").mapIt(it.replace("/", ""))) + .mapIt((it[0], it[1])) + + +proc pp(s: string): auto = + toSeq(lines(s)).mapIt(it.split(" => ").mapIt(it.replace("/", ""))).mapIt((it[0], it[1])) +echo pp("input") |