Changeset 11498
- Timestamp:
- 10/24/14 16:52:01 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/CloningConstructorTest.cs
r11171 r11498 47 47 //test only types contained in HL plugin assemblies 48 48 if (!PluginLoader.Assemblies.Contains(deepCloneableType.Assembly)) continue; 49 if (deepCloneableType.IsSealed) continue; 49 50 50 51 bool found = false; -
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r11171 r11498 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 28 using HeuristicLab.Optimization; 28 29 using HeuristicLab.Persistence.Default.Xml; … … 54 55 excludedTypes.Add(typeof(HeuristicLab.Problems.DataAnalysis.ClassificationEnsembleSolution)); 55 56 excludedTypes.Add(typeof(HeuristicLab.Problems.DataAnalysis.RegressionEnsembleSolution)); 57 excludedTypes.Add(typeof(SymbolicExpressionGrammar).Assembly.GetType("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.EmptySymbolicExpressionTreeGrammar")); 56 58 57 59 foreach (var symbolType in ApplicationManager.Manager.GetTypes(typeof(HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbol))) -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/Util.cs
r11171 r11498 147 147 148 148 foreach (var subtree in tree.Root.Subtrees) { 149 Assert.AreNotSame(subtree.Grammar, tree.Root.Grammar); 149 if (tree.Root.Grammar.GetType().Name != "EmptySymbolicExpressionTreeGrammar") 150 Assert.AreNotSame(subtree.Grammar, tree.Root.Grammar); 150 151 IsValid(subtree.Grammar); 151 152 }
Note: See TracChangeset
for help on using the changeset viewer.