Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/25/17 01:53:30 (8 years ago)
Author:
pkimmesw
Message:

#2665 PushGP HL Integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Tests/Interpreter/Expressions/ExecExpressionTests.cs

    r14513 r14602  
    2525
    2626    protected override void Test(Expression expression) {
    27       this.interpreter.InterpretAsync(expression, true).Wait();
     27      this.interpreter.RunAsync(expression, true).Wait();
    2828    }
    2929
     
    3434    public void TestIfTrue() {
    3535      this.interpreter.BooleanStack.Push(true);
    36       this.interpreter.Interpret("( EXEC.IF WAHR FALSCH )");
     36      this.interpreter.Run("( EXEC.IF WAHR FALSCH )");
    3737
    3838      Assert.AreEqual("WAHR", this.interpreter.NameStack.Top);
     
    4646    public void TestIfFalse() {
    4747      this.interpreter.BooleanStack.Push(false);
    48       this.interpreter.Interpret("( EXEC.IF WAHR FALSCH )");
     48      this.interpreter.Run("( EXEC.IF WAHR FALSCH )");
    4949
    5050      Assert.AreEqual("FALSCH", this.interpreter.NameStack.Top);
     
    109109    [TestCategory("ExecExpressionTest")]
    110110    public void TestNestedDoRange() {
    111       this.interpreter.Interpret(
     111      this.interpreter.Run(
    112112        "( 0 2 EXEC.DO*RANGE ( 1 INTEGER.+ 0 3 EXEC.DO*RANGE ( 1 INTEGER.+ INTEGER.* ) INTEGER.+ )");
    113113
     
    121121    [TestCategory("ExecExpressionTest")]
    122122    public void TestNestedDoCount() {
    123       this.interpreter.Interpret(
     123      this.interpreter.Run(
    124124        "( 2 EXEC.DO*COUNT ( 1 INTEGER.+ 3 EXEC.DO*COUNT ( 1 INTEGER.+ INTEGER.* ) INTEGER.+ )");
    125125
     
    133133    [TestCategory("ExecExpressionTest")]
    134134    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.+ )");
    136136
    137137      Assert.AreEqual(128, this.interpreter.IntegerStack.Top);
Note: See TracChangeset for help on using the changeset viewer.