mirror of
https://github.com/Oreolek/ink-instead.git
synced 2024-07-04 23:54:44 +03:00
basic runtime test
This commit is contained in:
parent
83aa300e2f
commit
dcd79a06b4
|
@ -31,6 +31,13 @@ function testTagsP() doTest('tags') end
|
||||||
|
|
||||||
--- runtime ---
|
--- runtime ---
|
||||||
|
|
||||||
|
function testBasicR()
|
||||||
|
local story = pink.getStory('test/runtime/hello.ink')
|
||||||
|
luaunit.assertEquals(story.continue(), 'hello world')
|
||||||
|
luaunit.assertFalse(story.canContinue)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function testVisitCount()
|
function testVisitCount()
|
||||||
local story = pink.getStory('test/runtime/branching.ink')
|
local story = pink.getStory('test/runtime/branching.ink')
|
||||||
story.choosePathString('hurry_outside');
|
story.choosePathString('hurry_outside');
|
||||||
|
|
Loading…
Reference in a new issue