Class RationalFieldTest


public class RationalFieldTest extends FieldTest
Tests for the RationalField.
  • Field Details

  • Constructor Details

    • RationalFieldTest

      public RationalFieldTest()
  • 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
    • 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 implemented for rationals") public void testChangeVariableComplex()
      Description copied from class: JepTest
      Test changing variables value after parsing
      Overrides:
      testChangeVariableComplex in class JepTest
    • testStrings

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

      @Test @Disabled("String tests not implemented for rationals") public void testStringsFun()
      Overrides:
      testStringsFun in class JepTest
    • testComplex

      @Test @Disabled("Complex tests not implemented for rationals") public void testComplex()
      Overrides:
      testComplex in class JepTest
    • testCaseString

      @Test @Disabled("String tests not implemented for rationals") public void testCaseString()
      Overrides:
      testCaseString in class JepTest
    • testAllFun

      @Test public void testAllFun()
    • testRationalFunctionTable

      @Test public void testRationalFunctionTable()
    • testNaN

      @Test @Disabled("NaN tests not implemented for rationals") public void testNaN()
      Overrides:
      testNaN in class JepTest
    • testSpecialFunctions

      @Test @Disabled("Special function tests not implemented for rationals, check") public void testSpecialFunctions()
      Overrides:
      testSpecialFunctions in class JepTest
    • testFormat

      @Test @Disabled("Formats tests not implemented for rationals") public void testFormat()
      Overrides:
      testFormat in class JepTest
    • testSwitch

      @Test @Disabled("Switch tests not implemented for rationals") public void testSwitch()
      Overrides:
      testSwitch in class JepTest
    • testNumbers

      @Test @Disabled("Number tests not implemented for rationals, check") public void testNumbers()
      Overrides:
      testNumbers in class JepTest
    • testFunction

      @Test @Disabled("Function tests not implemented for rationals, check") public void testFunction()
      Overrides:
      testFunction in class JepTest
    • testMacroFunction

      @Test @Disabled("MacroFunction tests not implemented for rationals, check") 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("Case tests not implemented for rationals") public void testCaseNull()
      Overrides:
      testCaseNull in class JepTest
    • testEvaluate

      @Disabled("Evaluate tests not implemented for rationals as expects doubles") @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 tests not implemented for rationals, check") @Test public void testLazyLogicalBug()
      Description copied from class: JepTest
      Test for bug with 1&&1&&1
      Overrides:
      testLazyLogicalBug in class JepTest
    • testLazyLogical

      @Test @Disabled("Logical tests not implemented for rationals, check") public void testLazyLogical()
      Overrides:
      testLazyLogical in class JepTest
    • testNumberAsBooleanLogical

      @Disabled("Logical tests not implemented for rationals, check") @Test public void testNumberAsBooleanLogical()
      Overrides:
      testNumberAsBooleanLogical in class JepTest
    • testNumParam

      @Test @Disabled("NumParam tests not implemented for rationals") public void testNumParam()
      Overrides:
      testNumParam in class JepTest
    • testLogarithm

      @Test @Disabled("Logarithm tests not implemented for rationals") public void testLogarithm()
      Overrides:
      testLogarithm in class JepTest
    • testIf

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

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