public void TestTurnsSince()
{
Story story = CompileString(@"
{ TURNS_SINCE(-> test) }
~ test()
{ TURNS_SINCE(-> test) }
* [choice 1]
- { TURNS_SINCE(-> test) }
* [choice 2]
- { TURNS_SINCE(-> test) }
== function test ==
~ return
");
Assert.AreEqual("-1\n0\n", story.ContinueMaximally());
story.ChooseChoiceIndex(0);
Assert.AreEqual("1\n", story.ContinueMaximally());
story.ChooseChoiceIndex(0);
Assert.AreEqual("2\n", story.ContinueMaximally());
}