1
0
Fork 0
mirror of https://github.com/Oreolek/ink-instead.git synced 2024-05-12 22:18:26 +03:00
ink-instead/test/parser/basic.lua
2017-08-08 16:28:55 +02:00

47 lines
812 B
Lua

return {
ink=[[
Hello, world!
Hello?
//TODO: this is a test todo-item
"What do you make of this?" she asked.
// Something unprintable...
"I couldn't possibly comment," I replied.
/*
... or an unlimited block of text
*/
we <> /* he
asdf
*/ hurr ied-> to_savile_row // comm
=== 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"}
}}