1
0
Fork 0
mirror of https://github.com/Oreolek/ink-instead.git synced 2024-05-13 06:28:24 +03:00
ink-instead/test/parser/basic.lua
2017-08-09 11:46:43 +02:00

36 lines
681 B
Lua

return {
ink=[[
Hello, world!
Hello?
"What do you make of this?" she asked.
"I couldn't possibly comment," I replied.
we <>
hurr ied-> to_savile_row
=== to_savile_row ===
to Savile Row
=st
stiiii
=st2
222stiiii ->END
]],
expected= {
{"para", "Hello, world!"},
{"para", "Hello?"},
{"para", '"What do you make of this?" she asked.'},
{"para", "\"I couldn't possibly comment,\" I replied."},
{"para", "we "},
{"glue"},
{"para", "hurr ied"},
{"divert", "to_savile_row"},
{"knot", "to_savile_row"},
{"para", "to Savile Row"},
{"stitch", "st"},
{"para", "stiiii"},
{"stitch", "st2"},
{"para", "222stiiii "},
{"end"}
}}