Tests.Tests.TestVariableSwapRecurse C# (CSharp) Method

TestVariableSwapRecurse() private method

private TestVariableSwapRecurse ( ) : void
return void
        public void TestVariableSwapRecurse()
        {
            var storyStr = @"
~ f(1, 1)

== function f(x, y) ==
{ x == 1 and y == 1:
  ~ x = 2
  ~ f(y, x)
- else:
  {x} {y}
}
~ return
";

            Story story = CompileString(storyStr);

            Assert.AreEqual("1 2\n", story.ContinueMaximally());
        }
Tests