- Timestamp:
- 03/11/17 12:42:31 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Tests/Interpreter/Expressions/StandardTests.cs
r14733 r14745 51 51 }; 52 52 53 var list = new ExecExpandExpression(expressions);53 var list = new PushProgram(expressions); 54 54 var clone = list.Copy(); 55 55 … … 68 68 }; 69 69 70 var list = new ExecExpandExpression(expressions.ToArray());70 var list = new PushProgram(expressions.ToArray()); 71 71 72 72 expressions.Add(list); 73 73 74 var list2 = new ExecExpandExpression(expressions.ToArray());74 var list2 = new PushProgram(expressions.ToArray()); 75 75 var clone = list2.Copy(); 76 76 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()); 79 79 80 80 Assert.AreNotSame(list2, clone); … … 92 92 }; 93 93 94 var list = new ExecExpandExpression(expressions.ToArray());94 var list = new PushProgram(expressions.ToArray()); 95 95 96 96 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()); 99 99 100 100 Assert.AreEqual(list2.GetHashCode(), list3.GetHashCode());
Note: See TracChangeset
for help on using the changeset viewer.