Class MRpeMatrixTest


public class MRpeMatrixTest extends MatrixTest
Tests the fastmatrix evaluator. @link{#testRpEval()} tests using the faster RpEval.evaluate method. Most other tests use the RpEvaluator which uses the jep evaluation framework and override tests from JepTest.
Author:
Richard Morris
  • Field Details

  • Constructor Details

    • MRpeMatrixTest

      public MRpeMatrixTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
      Description copied from class: JepTest
      Sets up the parser.
      Overrides:
      setUp in class MatrixTest
    • valueTest

      protected void valueTest(String expr, Object expected) throws JepException
      Description copied from class: JepTest
      Test result j.evaluate(j.parse(expr))
      Overrides:
      valueTest in class MatrixTest
      Parameters:
      expr - the expression to parse and evaluate
      expected - result expected
      Throws:
      JepException
    • valueTestString

      protected void valueTestString(String expr, String expected) throws Exception
      Overrides:
      valueTestString in class MatrixTest
      Throws:
      Exception
    • myAssertEquals

      protected void myAssertEquals(String msg, Object expected, Object actual) throws EvaluationException
      Overrides:
      myAssertEquals in class MatrixTest
      Throws:
      EvaluationException
    • setShiftZeroElePfmc

      protected void setShiftZeroElePfmc()
      Overrides:
      setShiftZeroElePfmc in class MatrixTest
    • calcValue

      protected Object calcValue(Node node) throws JepException
      Description copied from class: JepTest
      Calculate the value of an expression.
      Overrides:
      calcValue in class JepTest
      Parameters:
      node -
      Throws:
      JepException
    • negativeZero

      protected Object negativeZero()
      Overrides:
      negativeZero in class JepTest
    • testSetAllowUndeclared

      @Test public void testSetAllowUndeclared() throws Exception
      Description copied from class: JepTest
      Tests whether allowUndeclared is working properly.
      Overrides:
      testSetAllowUndeclared in class JepTest
      Throws:
      Exception
    • testEvaluateComplex

      @Disabled("Complex test not run for MRpe") @Test public void testEvaluateComplex()
      Overrides:
      testEvaluateComplex in class JepTest
    • testEvaluateString

      @Disabled("String test not run for MRpe") @Test public void testEvaluateString()
      Overrides:
      testEvaluateString in class JepTest
    • testChangeVariableComplex

      @Disabled("Complex test not run for MRpe") @Test public void testChangeVariableComplex()
      Description copied from class: JepTest
      Test changing variables value after parsing
      Overrides:
      testChangeVariableComplex in class JepTest
    • testStrings

      @Disabled("String test not run for MRpe") @Test public void testStrings()
      Overrides:
      testStrings in class JepTest
    • testComplex

      @Disabled("Complex test not run for MRpe") @Test public void testComplex()
      Overrides:
      testComplex in class JepTest
    • testLazyLogicalBug

      @Disabled("logical test not run for MRpe") public void testLazyLogicalBug()
      Description copied from class: JepTest
      Test for bug with 1&&1&&1
      Overrides:
      testLazyLogicalBug in class JepTest
    • testLazyLogical

      @Disabled("logical test not run for MRpe") public void testLazyLogical()
      Overrides:
      testLazyLogical in class JepTest
    • testLazyLogical2

      @Disabled("logical test not run for MRpe") @Test public void testLazyLogical2()
      Overrides:
      testLazyLogical2 in class JepTest
    • testRecursiveMacroFunction

      @Disabled("RecursiveMacroFunctions test not run for MRpe, check") public void testRecursiveMacroFunction()
      Overrides:
      testRecursiveMacroFunction in class JepTest
    • testCaseString

      @Disabled("String test not run for MRpe") public void testCaseString()
      Overrides:
      testCaseString in class JepTest
    • testNull

      @Disabled("Null test not run for MRpe") public void testNull()
      Overrides:
      testNull in class JepTest
    • testCaseNull

      @Disabled("Null test not run for MRpe") @Test public void testCaseNull()
      Overrides:
      testCaseNull in class JepTest
    • testStringsFun

      @Test @Disabled("String test not run for MRpe") public void testStringsFun()
      Overrides:
      testStringsFun in class JepTest
    • testComplexListAccess

      @Test @Disabled("Complex test not run for MRpe") public void testComplexListAccess()
      Overrides:
      testComplexListAccess in class JepTest
    • testSwitch

      @Test @Disabled("Switch test not run for MRpe, check") public void testSwitch()
      Overrides:
      testSwitch in class JepTest
    • testDepth3ArrayAccess

      @Test @Disabled("Tensor test not run for MRpe") public void testDepth3ArrayAccess()
      Description copied from class: MatrixTest
      Null implementation as does not support arrays of matrices
      Overrides:
      testDepth3ArrayAccess in class MatrixTest
    • testDepth3ArrayAccessShiftZero

      @Test @Disabled("Tensor test not run for MRpe") public void testDepth3ArrayAccessShiftZero()
      Overrides:
      testDepth3ArrayAccessShiftZero in class MatrixTest
    • testCPStrings

      @Test @Disabled("String test not run for MRpe") public void testCPStrings()
      Overrides:
      testCPStrings in class CPTest
    • testChangeDim

      @Test public void testChangeDim() throws Exception
      Throws:
      Exception
    • testSpecialFunctions

      public void testSpecialFunctions() throws Exception
      Overrides:
      testSpecialFunctions in class JepTest
      Throws:
      Exception
    • testChangeMatrixDim

      @Test public void testChangeMatrixDim() throws Exception
      Throws:
      Exception