Changeset 14602 for branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Tests/Interpreter/Expressions/ExecExpressionTests.cs
- Timestamp:
- 01/25/17 01:53:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Tests/Interpreter/Expressions/ExecExpressionTests.cs
r14513 r14602 25 25 26 26 protected override void Test(Expression expression) { 27 this.interpreter. InterpretAsync(expression, true).Wait();27 this.interpreter.RunAsync(expression, true).Wait(); 28 28 } 29 29 … … 34 34 public void TestIfTrue() { 35 35 this.interpreter.BooleanStack.Push(true); 36 this.interpreter. Interpret("( EXEC.IF WAHR FALSCH )");36 this.interpreter.Run("( EXEC.IF WAHR FALSCH )"); 37 37 38 38 Assert.AreEqual("WAHR", this.interpreter.NameStack.Top); … … 46 46 public void TestIfFalse() { 47 47 this.interpreter.BooleanStack.Push(false); 48 this.interpreter. Interpret("( EXEC.IF WAHR FALSCH )");48 this.interpreter.Run("( EXEC.IF WAHR FALSCH )"); 49 49 50 50 Assert.AreEqual("FALSCH", this.interpreter.NameStack.Top); … … 109 109 [TestCategory("ExecExpressionTest")] 110 110 public void TestNestedDoRange() { 111 this.interpreter. Interpret(111 this.interpreter.Run( 112 112 "( 0 2 EXEC.DO*RANGE ( 1 INTEGER.+ 0 3 EXEC.DO*RANGE ( 1 INTEGER.+ INTEGER.* ) INTEGER.+ )"); 113 113 … … 121 121 [TestCategory("ExecExpressionTest")] 122 122 public void TestNestedDoCount() { 123 this.interpreter. Interpret(123 this.interpreter.Run( 124 124 "( 2 EXEC.DO*COUNT ( 1 INTEGER.+ 3 EXEC.DO*COUNT ( 1 INTEGER.+ INTEGER.* ) INTEGER.+ )"); 125 125 … … 133 133 [TestCategory("ExecExpressionTest")] 134 134 public void TestNestedDoTimes() { 135 this.interpreter. Interpret("( 3 EXEC.DO*TIMES ( 2 3 EXEC.DO*TIMES ( 2 INTEGER.* ) INTEGER.+ )");135 this.interpreter.Run("( 3 EXEC.DO*TIMES ( 2 3 EXEC.DO*TIMES ( 2 INTEGER.* ) INTEGER.+ )"); 136 136 137 137 Assert.AreEqual(128, this.interpreter.IntegerStack.Top);
Note: See TracChangeset
for help on using the changeset viewer.