Changeset 15771 for branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions
- Timestamp:
- 02/13/18 16:56:35 (7 years ago)
- Location:
- branches/2895_PushGP_GenealogyAnalysis
- Files:
-
- 1 added
- 18 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/BooleanExpressionTests.cs
r14908 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 3 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 1 using HeuristicLab.Problems.ProgramSynthesis; 2 using Microsoft.VisualStudio.TestTools.UnitTesting; 4 3 5 using Microsoft.VisualStudio.TestTools.UnitTesting; 6 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 7 5 [TestClass] 8 6 public class BooleanExpressionTests : CommonTests<bool> { 9 protected override string TypeName 10 { 11 get 12 { 7 protected override string TypeName { 8 get { 13 9 return "BOOLEAN"; 14 10 } 15 11 } 16 12 17 protected override IPushStack<bool> Stack 18 { 19 get 20 { 13 protected override IPushStack<bool> Stack { 14 get { 21 15 return interpreter.BooleanStack; 22 16 } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/BooleanVectorExpressionsTests.cs
r15017 r15771 1 1 using System.Collections.Generic; 2 2 using System.Linq; 3 using HeuristicLab.Problems.ProgramSynthesis; 3 4 4 5 namespace HeuristicLab.Tests.Interpreter.Expressions { 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;6 6 7 7 using Microsoft.VisualStudio.TestTools.UnitTesting; -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/CharExpressionTests.cs
r15017 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using System.Linq; 1 using System.Linq; 2 using HeuristicLab.Problems.ProgramSynthesis; 3 using Microsoft.VisualStudio.TestTools.UnitTesting; 3 4 4 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 6 7 using Microsoft.VisualStudio.TestTools.UnitTesting; 8 5 namespace HeuristicLab.Tests.Interpreter.Expressions { 9 6 [TestClass] 10 7 public class CharExpressionTests : CommonTests<char> { -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/CodeExpressionTests.cs
r15017 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 3 using HeuristicLab.Problems.ProgramSynthesis.Push.Parser; 4 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 5 using Microsoft.VisualStudio.TestTools.UnitTesting; 6 1 using Microsoft.VisualStudio.TestTools.UnitTesting; 2 using HeuristicLab.Problems.ProgramSynthesis; 3 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 7 5 8 6 [TestClass] 9 7 public class CodeExpressionTests : CommonTests<Expression> { 10 protected override string TypeName 11 { 12 get 13 { 8 protected override string TypeName { 9 get { 14 10 return "CODE"; 15 11 } 16 12 } 17 13 18 protected override IPushStack<Expression> Stack 19 { 20 get 21 { 14 protected override IPushStack<Expression> Stack { 15 get { 22 16 return interpreter.CodeStack; 23 17 } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/CommonTests.cs
r15273 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 3 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 4 5 using Microsoft.VisualStudio.TestTools.UnitTesting; 6 1 using HeuristicLab.Problems.ProgramSynthesis; 2 using Microsoft.VisualStudio.TestTools.UnitTesting; 3 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 7 5 public abstract class CommonTests<T> : ExpressionTest { 8 6 protected const string FullInstructionNameFormat = "{0}.{1}"; -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/ExampleTests.cs
r15273 r15771 1 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using HeuristicLab.Problems.ProgramSynthesis .Push.Parser;2 using HeuristicLab.Problems.ProgramSynthesis; 3 3 4 4 using Microsoft.VisualStudio.TestTools.UnitTesting; -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/ExecExpressionTests.cs
r15017 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 3 using HeuristicLab.Problems.ProgramSynthesis.Push.Parser; 4 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 1 using Microsoft.VisualStudio.TestTools.UnitTesting; 2 using HeuristicLab.Problems.ProgramSynthesis; 5 3 6 using Microsoft.VisualStudio.TestTools.UnitTesting; 7 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 8 5 [TestClass] 9 6 public class ExecExpressionTests : CommonTests<Expression> { 10 protected override string TypeName 11 { 12 get 13 { 7 protected override string TypeName { 8 get { 14 9 return "EXEC"; 15 10 } 16 11 } 17 12 18 protected override IPushStack<Expression> Stack 19 { 20 get 21 { 13 protected override IPushStack<Expression> Stack { 14 get { 22 15 return interpreter.ExecStack; 23 16 } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/FloatExpressionTests.cs
r14908 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using System; 3 4 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 6 7 using Microsoft.VisualStudio.TestTools.UnitTesting; 8 1 using System; 2 using HeuristicLab.Problems.ProgramSynthesis; 3 using Microsoft.VisualStudio.TestTools.UnitTesting; 4 5 namespace HeuristicLab.Tests.Interpreter.Expressions { 9 6 [TestClass] 10 7 public class FloatExpressionTests : CommonTests<double> { 11 8 private const double delta = 0.00001; 12 9 13 protected override string TypeName 14 { 15 get 16 { 10 protected override string TypeName { 11 get { 17 12 return "FLOAT"; 18 13 } 19 14 } 20 15 21 protected override IPushStack<double> Stack 22 { 23 get 24 { 16 protected override IPushStack<double> Stack { 17 get { 25 18 return interpreter.FloatStack; 26 19 } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/FloatVectorExpressionTests.cs
r15017 r15771 1 1 using System.Collections.Generic; 2 2 using System.Linq; 3 using HeuristicLab.Problems.ProgramSynthesis; 4 using Microsoft.VisualStudio.TestTools.UnitTesting; 3 5 4 6 namespace HeuristicLab.Tests.Interpreter.Expressions { 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;6 7 using Microsoft.VisualStudio.TestTools.UnitTesting;8 9 7 [TestClass] 10 8 public class FloatVectorExpressionTests : VectorExpressionTests<double> { -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/IntegerExpressionTests.cs
r15017 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 3 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 4 5 using Microsoft.VisualStudio.TestTools.UnitTesting; 6 1 using HeuristicLab.Problems.ProgramSynthesis; 2 using Microsoft.VisualStudio.TestTools.UnitTesting; 3 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 7 5 [TestClass] 8 6 public class IntegerExpressionTests : CommonTests<long> { 9 protected override string TypeName 10 { 11 get 12 { 7 protected override string TypeName { 8 get { 13 9 return "INTEGER"; 14 10 } 15 11 } 16 12 17 protected override IPushStack<long> Stack 18 { 19 get 20 { 13 protected override IPushStack<long> Stack { 14 get { 21 15 return interpreter.IntegerStack; 22 16 } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/IntegerVectorExpressionTests.cs
r15017 r15771 1 1 using System.Collections.Generic; 2 2 using System.Linq; 3 using HeuristicLab.Problems.ProgramSynthesis; 3 4 4 5 namespace HeuristicLab.Tests.Interpreter.Expressions { 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;6 6 7 7 using Microsoft.VisualStudio.TestTools.UnitTesting; -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/NameExpressionTests.cs
r14952 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 3 using HeuristicLab.Problems.ProgramSynthesis.Push.Generators; 4 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 1 using HeuristicLab.Problems.ProgramSynthesis; 2 using Microsoft.VisualStudio.TestTools.UnitTesting; 5 3 6 using Microsoft.VisualStudio.TestTools.UnitTesting; 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 7 5 8 6 [TestClass] 9 7 public class NameExpressionTests : CommonTests<string> { 10 protected override string TypeName 11 { 12 get 13 { 8 protected override string TypeName { 9 get { 14 10 return "NAME"; 15 11 } 16 12 } 17 13 18 protected override IPushStack<string> Stack 19 { 20 get 21 { 14 protected override IPushStack<string> Stack { 15 get { 22 16 return interpreter.NameStack; 23 17 } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/PrintExpressionTests.cs
r15289 r15771 2 2 using System.Globalization; 3 3 4 using HeuristicLab.Problems.ProgramSynthesis .Push.Expressions;4 using HeuristicLab.Problems.ProgramSynthesis; 5 5 6 6 using Microsoft.VisualStudio.TestTools.UnitTesting; -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/PushProgramTests.cs
r15017 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions {2 using HeuristicLab.Problems.ProgramSynthesis.Push.Parser;1 using HeuristicLab.Problems.ProgramSynthesis; 2 using Microsoft.VisualStudio.TestTools.UnitTesting; 3 3 4 using Microsoft.VisualStudio.TestTools.UnitTesting; 5 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 6 5 [TestClass] 7 6 public class PushProgramTests : ExpressionTest { -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/StandardTests.cs
r15017 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using System; 3 using System.Collections.Generic; 4 using System.Diagnostics; 5 using System.Linq; 1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.Linq; 5 using HeuristicLab.Problems.ProgramSynthesis; 6 using Microsoft.VisualStudio.TestTools.UnitTesting; 6 7 7 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 8 using HeuristicLab.Problems.ProgramSynthesis.Push.Parser; 9 10 using Microsoft.VisualStudio.TestTools.UnitTesting; 11 8 namespace HeuristicLab.Tests.Interpreter.Expressions { 12 9 [TestClass] 13 10 public class StandardTests { -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/StringExpressionTests.cs
r15017 r15771 1 1 using System.Linq; 2 using HeuristicLab.Problems.ProgramSynthesis; 2 3 3 4 namespace HeuristicLab.Tests.Interpreter.Expressions { 4 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;5 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;6 5 7 6 using Microsoft.VisualStudio.TestTools.UnitTesting; -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/StringVectorExpressionTests.cs
r15017 r15771 1 namespace HeuristicLab.Tests.Interpreter.Expressions { 2 using System.Collections.Generic; 3 using System.Linq; 1 using System.Collections.Generic; 2 using System.Linq; 3 using HeuristicLab.Problems.ProgramSynthesis; 4 using Microsoft.VisualStudio.TestTools.UnitTesting; 4 5 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 6 7 using Microsoft.VisualStudio.TestTools.UnitTesting; 8 6 namespace HeuristicLab.Tests.Interpreter.Expressions { 9 7 [TestClass] 10 8 public class StringVectorExpressionTests : VectorExpressionTests<string> { -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Tests/Interpreter/Expressions/VectorExpressionTests.cs
r15017 r15771 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 6 using HeuristicLab.Problems.ProgramSynthesis.Push.Stack; 7 4 using HeuristicLab.Problems.ProgramSynthesis; 8 5 using Microsoft.VisualStudio.TestTools.UnitTesting; 9 6
Note: See TracChangeset
for help on using the changeset viewer.