commit
5ebd111f7f
1 changed files with 16 additions and 0 deletions
16
tests/cpp/t6986.nim
Normal file
16
tests/cpp/t6986.nim
Normal file
|
|
@ -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")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue