Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18158


Ignore:
Timestamp:
12/19/21 08:46:31 (3 years ago)
Author:
gkronber
Message:

#3136: fixed "essential" unit tests

Location:
branches/3136_Structural_GP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Plugin.cs.frame

    r17931 r18158  
    4141  [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")]
    4242  [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic", "3.4")]
     43  [PluginDependency("HeuristicLab.Problems.Instances", "3.3")]
     44  [PluginDependency("HeuristicLab.Problems.Instances.DataAnalysis", "3.3")]
    4345  public class HeuristicLabProblemsDataAnalysisSymbolicRegressionPlugin : PluginBase {
    4446  }
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/SubFunctionSymbol.cs

    r18139 r18158  
    1 using System.Collections.Generic;
    2 using HEAL.Attic;
     1using HEAL.Attic;
    32using HeuristicLab.Common;
    43using HeuristicLab.Core;
     
    87  [StorableType("C6C2FBEE-8F4B-4FF2-80F5-D566BE55ED69")]
    98  [Item("SubFunction", "Symbol that represents a sub function.")]
    10   public class SubFunctionSymbol : Symbol {
     9  public sealed class SubFunctionSymbol : Symbol {
    1110    public override int MinimumArity => 0;
    1211    public override int MaximumArity => 1;
     
    1716
    1817    [StorableConstructor]
    19     public SubFunctionSymbol(StorableConstructorFlag _) : base(_) { }
     18    private SubFunctionSymbol(StorableConstructorFlag _) : base(_) { }
    2019
    2120    public override IDeepCloneable Clone(Cloner cloner) =>
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/SubFunctionTreeNode.cs

    r18069 r18158  
    1 using System;
    2 using System.Collections.Generic;
     1using System.Collections.Generic;
    32using System.Linq;
    4 using System.Text;
    5 using System.Threading.Tasks;
    63using HEAL.Attic;
    74using HeuristicLab.Common;
     
    107namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    118  [StorableType("05130B5F-0125-4367-A4E9-C42D1085024E")]
    12   public class SubFunctionTreeNode : SymbolicExpressionTreeNode {
     9  public sealed class SubFunctionTreeNode : SymbolicExpressionTreeNode {
    1310
    1411    #region Properties
     
    2623
    2724    [StorableConstructor]
    28     protected SubFunctionTreeNode(StorableConstructorFlag _) : base(_) { }
     25    private SubFunctionTreeNode(StorableConstructorFlag _) : base(_) { }
    2926
    30     protected SubFunctionTreeNode(SubFunctionTreeNode original, Cloner cloner) : base(original, cloner) {
     27    private SubFunctionTreeNode(SubFunctionTreeNode original, Cloner cloner) : base(original, cloner) {
    3128      Arguments = original.Arguments;
    3229      Name = (string)original.Name.Clone();
     
    4340      return $"{Name}({string.Join(",", Arguments)})";
    4441    }
    45    
    4642  }
    4743}
Note: See TracChangeset for help on using the changeset viewer.