Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/17 12:42:31 (8 years ago)
Author:
pkimmesw
Message:

#2665 Merged ExecExpandExpression and PushProgram due to performance reasons, Tested managed object pooling

File:
1 edited

Legend:

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

    r14733 r14745  
    5151                          };
    5252
    53       var list = new ExecExpandExpression(expressions);
     53      var list = new PushProgram(expressions);
    5454      var clone = list.Copy();
    5555
     
    6868                          };
    6969
    70       var list = new ExecExpandExpression(expressions.ToArray());
     70      var list = new PushProgram(expressions.ToArray());
    7171
    7272      expressions.Add(list);
    7373
    74       var list2 = new ExecExpandExpression(expressions.ToArray());
     74      var list2 = new PushProgram(expressions.ToArray());
    7575      var clone = list2.Copy();
    7676
    77       Assert.AreSame(list, clone.State.Expressions.Last());
    78       Assert.AreEqual(list, clone.State.Expressions.Last());
     77      Assert.AreSame(list, clone.State.Last());
     78      Assert.AreEqual(list, clone.State.Last());
    7979
    8080      Assert.AreNotSame(list2, clone);
     
    9292                          };
    9393
    94       var list = new ExecExpandExpression(expressions.ToArray());
     94      var list = new PushProgram(expressions.ToArray());
    9595
    9696      expressions.Add(list);
    97       var list2 = new ExecExpandExpression(expressions.ToArray());
    98       var list3 = new ExecExpandExpression(expressions.ToArray());
     97      var list2 = new PushProgram(expressions.ToArray());
     98      var list3 = new PushProgram(expressions.ToArray());
    9999
    100100      Assert.AreEqual(list2.GetHashCode(), list3.GetHashCode());
Note: See TracChangeset for help on using the changeset viewer.