Class ComplexFieldTest


public class ComplexFieldTest extends FieldTest
Tests for the ComplexField.
  • Field Details

  • Constructor Details

    • ComplexFieldTest

      public ComplexFieldTest()
  • Method Details

    • setUp

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

      protected Object getNumber(Object val)
      Description copied from class: JepTest
      Create a number of the appropriate type
      Overrides:
      getNumber in class JepTest
      Parameters:
      val - input
      Returns:
      converted number
    • myAssertEquals

      public void myAssertEquals(String msg, Object expected, Object actual) throws EvaluationException
      Overrides:
      myAssertEquals in class JepTest
      Throws:
      EvaluationException
    • valueTest

      protected void valueTest(String expr, double a, double tol) throws Exception
      Description copied from class: JepTest
      Test values to within a given precision
      Overrides:
      valueTest in class JepTest
      Parameters:
      expr - expression
      a - the expected value
      tol - tolerance
      Throws:
      Exception
    • myAssertNaN

      protected void myAssertNaN(String msg, Object actual)
      Overrides:
      myAssertNaN in class JepTest
    • testFieldBinomial

      @Disabled("Null test as no notion of comparison for complex") @Test public void testFieldBinomial()
      Overrides:
      testFieldBinomial in class FieldTest
    • testBinom

      @Disabled("Null test as no notion of comparison for complex") @Test public void testBinom()
      Overrides:
      testBinom in class JepTest
    • testCaseString

      @Disabled("String test not relevant complexField") @Test public void testCaseString()
      Overrides:
      testCaseString in class JepTest
    • testNaN

      @Test public void testNaN() throws Exception
      Overrides:
      testNaN in class JepTest
      Throws:
      Exception
    • testComplex

      @Test public void testComplex() throws Exception
      Overrides:
      testComplex in class JepTest
      Throws:
      Exception
    • test_not_X_Y

      @Disabled("Logical tests not relevant for complexField") @Test public void test_not_X_Y()
      Overrides:
      test_not_X_Y in class JepTest
    • testIf

      @Test public void testIf() throws Exception
      Overrides:
      testIf in class JepTest
      Throws:
      Exception
    • testLogical

      @Disabled("Logical tests not relevant for complexField") @Test public void testLogical()
      Overrides:
      testLogical in class JepTest
    • testNumberAsBooleanLogical

      @Disabled("Logical tests not relevant for complexField") public void testNumberAsBooleanLogical()
      Overrides:
      testNumberAsBooleanLogical in class JepTest
    • testCaseNull

      @Disabled("Null tests not relevant for complexField") @Test public void testCaseNull()
      Overrides:
      testCaseNull in class JepTest
    • testLogarithm

      @Disabled("Logarithm tests require explicit test for double values") @Test public void testLogarithm()
      Overrides:
      testLogarithm in class JepTest
    • testRecursiveMacroFunction

      @Disabled("Requires comparison") @Test public void testRecursiveMacroFunction()
      Overrides:
      testRecursiveMacroFunction in class JepTest
    • testEvaluate

      @Test public void testEvaluate() throws Exception
      Description copied from class: JepTest
      Tests the evaluate() method.
      Overrides:
      testEvaluate in class JepTest
      Throws:
      Exception
    • testFormat

      @Disabled("Formats different for ComplexFields") @Test public void testFormat()
      Overrides:
      testFormat in class JepTest
    • testLazyLogicalBug

      @Disabled("Logical operations not relevant for complex values") @Test public void testLazyLogicalBug()
      Description copied from class: JepTest
      Test for bug with 1&&1&&1
      Overrides:
      testLazyLogicalBug in class JepTest
    • testLazyLogical

      @Disabled("Logical operations not relevant for complex values") @Test public void testLazyLogical()
      Overrides:
      testLazyLogical in class JepTest
    • testSwitch

      @Disabled("Comparison operations not relevant for complex values") @Test public void testSwitch()
      Overrides:
      testSwitch in class JepTest
    • testStringsFun

      @Disabled("String test not relevant for complex values") @Test public void testStringsFun()
      Overrides:
      testStringsFun in class JepTest
    • testStrings

      @Disabled("String test not relevant for complex values") @Test public void testStrings()
      Overrides:
      testStrings in class JepTest
    • testFunction

      @Disabled("Test requires explicit comparison of double values") @Test public void testFunction()
      Overrides:
      testFunction in class JepTest
    • testSpecialFunctions

      @Disabled("Special functions use double values, might need to rework") @Test public void testSpecialFunctions()
      Overrides:
      testSpecialFunctions in class JepTest
    • testAllFun

      @Test public void testAllFun()