Skip to content

Commit

Permalink
Oops, bad merge. Fixed!
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Oct 7, 2016
1 parent 079f0df commit 4b0ce56
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2532,23 +2532,6 @@ Stitch content
Assert.AreEqual (knotTagWhenContinuedTwice, story.currentTags);
}

[Test ()]
public void TestSetNonExistantVariable ()
{
var storyStr =
@"
VAR x = ""world""
Hello {x}.
";
var story = CompileString (storyStr);

Assert.AreEqual ("Hello world.\n", story.Continue());

Assert.Throws<StoryException>(() => {
story.variablesState ["y"] = "earth";
});
}

// Helper compile function
protected Story CompileString(string str, bool countAllVisits = false, bool testingErrors = false)
{
Expand Down

0 comments on commit 4b0ce56

Please sign in to comment.