Class BigDecimalFieldTest


@Tag("big-decimals") public class BigDecimalFieldTest extends FieldTest
Tests for the BigDecimalField.
  • Field Details

  • Constructor Details

    • BigDecimalFieldTest

      public BigDecimalFieldTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
      Description copied from class: JepTest
      Sets up the parser.
      Overrides:
      setUp in class FieldTest
    • 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 JepTest
      Parameters:
      expr - the expression to parse and evaluate
      expected - result expected
      Throws:
      JepException
    • myAssertEquals

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

      @Test @Disabled("Complex tests not relevant for BigDecimals") public void testChangeVariableComplex()
      Description copied from class: JepTest
      Test changing variables value after parsing
      Overrides:
      testChangeVariableComplex in class JepTest
    • testComplex

      @Test @Disabled("Complex tests not relevant for BigDecimals") public void testComplex()
      Overrides:
      testComplex in class JepTest
    • testStrings

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

      @Test @Disabled("String tests not relevant for BigDecimals") public void testStringsFun()
      Overrides:
      testStringsFun in class JepTest
    • testCaseString

      @Test @Disabled("String tests not relevant for BigDecimals") public void testCaseString()
      Overrides:
      testCaseString in class JepTest
    • testFunction

      @Test @Disabled("Most functions not relevant for BigDecimals") public void testFunction()
      Overrides:
      testFunction in class JepTest
    • testAllFun

      @Test public void testAllFun()
    • testBigDecimalFunctionTable

      @Test public void testBigDecimalFunctionTable()
    • testNaN

      @Test @Disabled("NaN tests for relevant for BigDecimals") public void testNaN()
      Overrides:
      testNaN in class JepTest
    • test_not_X_Y

      @Test @Disabled("Not (!) not relevant for BigDecimals") public void test_not_X_Y()
      Overrides:
      test_not_X_Y in class JepTest
    • testSpecialFunctions

      @Test @Disabled("Most special functions not relevant for BigDecimals") public void testSpecialFunctions()
      Overrides:
      testSpecialFunctions in class JepTest
    • testMacroFunction

      @Test @Disabled("MacroFunction test fails for BigDecimals ") public void testMacroFunction()
      Overrides:
      testMacroFunction in class JepTest
    • testRecursiveMacroFunction

      @Test public void testRecursiveMacroFunction() throws Exception
      Overrides:
      testRecursiveMacroFunction in class JepTest
      Throws:
      Exception
    • testCaseNull

      @Test @Disabled("Null values not relevant for BigDecimals ") public void testCaseNull()
      Overrides:
      testCaseNull in class JepTest
    • testEvaluate

      @Disabled("Require an explicit test for Double not relevant for BigDecimals ") @Test public void testEvaluate()
      Description copied from class: JepTest
      Tests the evaluate() method.
      Overrides:
      testEvaluate in class JepTest
    • testUminusPower

      @Test public void testUminusPower() throws Exception
      Overrides:
      testUminusPower in class JepTest
      Throws:
      Exception
    • testLazyLogicalBug

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

      @Disabled("Requires an explicit test for Doubles not relevant for BigDecimals ") @Test public void testNumbers()
      Overrides:
      testNumbers in class JepTest
    • testLazyLogical

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

      @Disabled("Logical operations not relevant for BigDecimals") @Test public void testNumberAsBooleanLogical()
      Overrides:
      testNumberAsBooleanLogical in class JepTest