Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/10/17 00:27:31 (7 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/NameExpressionTests.cs

    r14727 r14834  
    1 namespace HeuristicLab.Tests.Interpreter.Expressions
    2 {
     1namespace HeuristicLab.Tests.Interpreter.Expressions {
    32  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    43  using HeuristicLab.Problems.ProgramSynthesis.Push.Generators;
     
    87
    98  [TestClass]
    10   public class NameExpressionTests : CommonTests<string>
    11   {
     9  public class NameExpressionTests : CommonTests<string> {
    1210    protected override string TypeName
    1311    {
     
    1816    }
    1917
    20     protected override IStack<string> Stack
     18    protected override IPushStack<string> Stack
    2119    {
    2220      get
     
    3028    [TestCategory("ExpressionTest")]
    3129    [TestCategory("NameExpressionTest")]
    32     public void TestRand()
    33     {
     30    public void TestRand() {
     31      this.interpreter.Configuration.ErcOptions.NameErcOptions.IsEnabled = true;
    3432      this.interpreter.Run(new NameRandExpression());
    3533
     
    4341    [TestCategory("ExpressionTest")]
    4442    [TestCategory("NameExpressionTest")]
    45     public void TestRandomBound()
    46     {
     43    public void TestRandomBound() {
    4744      this.interpreter.CustomExpressions.Add("c1", new CodeNoopExpression());
    4845      this.interpreter.CustomExpressions.Add("c2", new CodeNoopExpression());
     
    6057    [TestCategory("ExpressionTest")]
    6158    [TestCategory("NameExpressionTest")]
    62     public void TestRandomBoundWithInsufficientArguments()
    63     {
     59    public void TestRandomBoundWithInsufficientArguments() {
    6460      this.TestWithInsufficientArguments("RANDBOUNDNAME");
    6561    }
     
    6965    [TestCategory("ExpressionTest")]
    7066    [TestCategory("NameExpressionTest")]
    71     public void TestQuote()
    72     {
     67    public void TestQuote() {
    7368      this.interpreter.Run(new NameQuoteExpression());
    7469
     
    7873    }
    7974
    80     protected override string[] GetValues(int count)
    81     {
    82       var ng = new NameGenerator();
     75    protected override string[] GetValues(int count) {
     76      var ng = new StringGenerator();
    8377      var values = new string[count];
    8478
     
    8882    }
    8983
    90     protected override void CheckOtherStacksAreEmpty()
    91     {
     84    protected override void CheckOtherStacksAreEmpty() {
    9285      this.TestStackCounts(nameStack: null);
    9386    }
Note: See TracChangeset for help on using the changeset viewer.