Changeset 14834 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Tests/Interpreter/Expressions/ExecExpressionTests.cs
- Timestamp:
- 04/10/17 00:27:31 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Tests/Interpreter/Expressions/ExecExpressionTests.cs
r14733 r14834 16 16 } 17 17 18 protected override I Stack<Expression> Stack18 protected override IPushStack<Expression> Stack 19 19 { 20 20 get … … 25 25 26 26 protected override void Test(Expression expression) { 27 this.interpreter.RunAsync(expression, true).Wait(); 27 this.interpreter.Run(expression, true); 28 this.interpreter.Step(); 28 29 } 29 30 … … 61 62 var third = PushParser.Parse("C"); 62 63 63 this.interpreter.ExecStack.Push(third, second, first);64 this.Test(new ExecKExpression());64 interpreter.ExecStack.Push(third, second, first); 65 Test(new ExecKExpression()); 65 66 66 Assert.AreEqual(first, this.interpreter.ExecStack.Top);67 Assert.AreEqual(third, this.interpreter.ExecStack.Bottom);68 this.TestStackCounts(2);67 Assert.AreEqual(first, interpreter.ExecStack.Top); 68 Assert.AreEqual(third, interpreter.ExecStack.Bottom); 69 TestStackCounts(2); 69 70 } 70 71
Note: See TracChangeset
for help on using the changeset viewer.