Changeset 14810


Ignore:
Timestamp:
03/31/17 14:37:58 (2 years ago)
Author:
bburlacu
Message:

#2442: Update interpreter unit test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs

    r14354 r14810  
    182182    }
    183183
     184    /// <summary>
     185    ///A test for Evaluate
     186    ///</summary>
     187    [TestMethod]
     188    [TestCategory("Problems.DataAnalysis.Symbolic")]
     189    [TestProperty("Time", "short")]
     190    public void ILEmittingInterpreterTestEvaluation() {
     191      var interpreter = new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter();
     192      EvaluateTerminals(interpreter, ds);
     193      EvaluateOperations(interpreter, ds);
     194      EvaluateLaggedOperations(interpreter, ds);
     195      EvaluateSpecialFunctions(interpreter, ds);
     196    }
     197
    184198    [TestMethod]
    185199    [TestCategory("Problems.DataAnalysis.Symbolic")]
     
    187201    public void CompiledInterpreterTestEvaluation() {
    188202      var interpreter = new SymbolicDataAnalysisExpressionCompiledTreeInterpreter();
    189       // ADFs are not supported by the compiled tree interpreter
    190203      EvaluateTerminals(interpreter, ds);
    191204      EvaluateOperations(interpreter, ds);
     
    410423        try {
    411424          Evaluate(interpreter, ds, "(psi " + x + ")", 0, alglib.psi(x));
    412         }
    413         catch (alglib.alglibexception) { // ignore cases where alglib throws an exception
     425        } catch (alglib.alglibexception) { // ignore cases where alglib throws an exception
    414426        }
    415427      };
Note: See TracChangeset for help on using the changeset viewer.