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