Ignore:
Timestamp:
04/10/17 00:27:31 (3 years ago)
Author:
pkimmesw
Message:

#2665 LexicaseSelector, Performance improvements, UI Fixes, Debugger only shows used stacks, fixed Debugger stepping, Added vector expressions, ERCOptions,

File:
1 edited

Legend:

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

    r14733 r14834  
    1616    }
    1717
    18     protected override IStack<Expression> Stack
     18    protected override IPushStack<Expression> Stack
    1919    {
    2020      get
     
    2525
    2626    protected override void Test(Expression expression) {
    27       this.interpreter.RunAsync(expression, true).Wait();
     27      this.interpreter.Run(expression, true);
     28      this.interpreter.Step();
    2829    }
    2930
     
    6162      var third = PushParser.Parse("C");
    6263
    63       this.interpreter.ExecStack.Push(third, second, first);
    64       this.Test(new ExecKExpression());
     64      interpreter.ExecStack.Push(third, second, first);
     65      Test(new ExecKExpression());
    6566
    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);
    6970    }
    7071
Note: See TracChangeset for help on using the changeset viewer.