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/branching.lua
2017-08-09 11:36:14 +02:00

54 lines
1.4 KiB
Lua

return {
ink=[[
=== back_in_london ===
We arrived into London at 9.45pm exactly.
* "There is not a moment to lose!"[] I declared.
-> hurry_outside
* "Monsieur, let us savour this moment!"[] I declared.
My master clouted me firmly around the head and dragged me out of the door.<>
-> dragged_outside
* [We hurried home] -> hurry_outside
=== hurry_outside ===
We hurried home to Savile Row -> as_fast_as_we_could
=== dragged_outside ===
He insisted that we hurried home to Savile Row
-> as_fast_as_we_could
=== as_fast_as_we_could ===
<> as fast as we could.
]],
expected= {
{"knot", "back_in_london"},
{"para", "We arrived into London at 9.45pm exactly."},
{"option", 1, '"There is not a moment to lose!"', "", " I declared."},
{"divert", "hurry_outside"},
{"option", 1, '"Monsieur, let us savour this moment!"', "", " I declared."},
{
"para",
"My master clouted me firmly around the head and dragged me out of the door."
},
{"glue"},
{"divert", "dragged_outside"},
{"option", 1, "", "We hurried home", " "},
{"divert", "hurry_outside"},
{"knot", "hurry_outside"},
{"para", "We hurried home to Savile Row "},
{"divert", "as_fast_as_we_could"},
{"knot", "dragged_outside"},
{"para", "He insisted that we hurried home to Savile Row"},
{"divert", "as_fast_as_we_could"},
{"knot", "as_fast_as_we_could"},
{"glue"},
{"para", "as fast as we could."}
}
}