- Timestamp:
- 09/20/11 11:12:10 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:ignore
-
old new 13 13 *.vsp 14 14 *.docstates 15 bin 16 HeuristicLab 3.3.6.0.ReSharper.user
-
- Property svn:mergeinfo changed
/branches/GP.Grammar.Editor (added) merged: 6284-6285,6296,6299,6335,6337,6377,6379,6387,6403,6409,6415,6493-6494,6497,6618,6620,6622,6626,6647,6675,6782,6784,6786,6795
- Property svn:ignore
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
-
Property
svn:ignore
set to
bin
-
Property
svn:ignore
set to
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/Grammars.cs
r6375 r6803 27 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_3._4.Tests { 28 28 public static class Grammars { 29 30 29 [StorableClass] 31 30 private class Addition : Symbol { 31 private const int minimumArity = 1; 32 private const int maximumArity = byte.MaxValue; 33 34 public override int MinimumArity { 35 get { return minimumArity; } 36 } 37 public override int MaximumArity { 38 get { return maximumArity; } 39 } 40 32 41 [StorableConstructor] 33 42 protected Addition(bool deserializing) : base(deserializing) { } … … 41 50 [StorableClass] 42 51 private class Subtraction : Symbol { 52 private const int minimumArity = 1; 53 private const int maximumArity = byte.MaxValue; 54 55 public override int MinimumArity { 56 get { return minimumArity; } 57 } 58 public override int MaximumArity { 59 get { return maximumArity; } 60 } 61 43 62 [StorableConstructor] 44 63 protected Subtraction(bool deserializing) : base(deserializing) { } … … 52 71 [StorableClass] 53 72 private class Multiplication : Symbol { 73 private const int minimumArity = 1; 74 private const int maximumArity = byte.MaxValue; 75 76 public override int MinimumArity { 77 get { return minimumArity; } 78 } 79 public override int MaximumArity { 80 get { return maximumArity; } 81 } 82 54 83 [StorableConstructor] 55 84 protected Multiplication(bool deserializing) : base(deserializing) { } … … 63 92 [StorableClass] 64 93 private class Division : Symbol { 94 private const int minimumArity = 1; 95 private const int maximumArity = byte.MaxValue; 96 97 public override int MinimumArity { 98 get { return minimumArity; } 99 } 100 public override int MaximumArity { 101 get { return maximumArity; } 102 } 103 65 104 [StorableConstructor] 66 105 protected Division(bool deserializing) : base(deserializing) { } … … 74 113 [StorableClass] 75 114 private class Terminal : Symbol { 115 private const int minimumArity = 0; 116 private const int maximumArity = 0; 117 118 public override int MinimumArity { 119 get { return minimumArity; } 120 } 121 public override int MaximumArity { 122 get { return maximumArity; } 123 } 124 76 125 [StorableConstructor] 77 126 protected Terminal(bool deserializing) : base(deserializing) { } -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/Util.cs
r5809 r6803 122 122 123 123 foreach (var argTreenode in defunTreeNode.IterateNodesPrefix().OfType<ArgumentTreeNode>()) { 124 Assert.IsTrue(argTreenode.Subtree sCount == 0);124 Assert.IsTrue(argTreenode.SubtreeCount == 0); 125 125 Assert.IsTrue(((Argument)argTreenode.Symbol).ArgumentIndex < arity); 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.