Class XJepTest

Direct Known Subclasses:
DJepTest

public class XJepTest extends JepTest
Tests for the XJep
Author:
Rich Morris Created on 17-Apr-2005
  • Field Details

    • xj

      protected XJep xj
  • Constructor Details

    • XJepTest

      public XJepTest()
  • Method Details

    • setUp

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

      @Test public void testOperatorTable()
    • testFunctionTable

      @Test public void testFunctionTable()
      Checks it uses DirtyRandom
    • testFunctionTableWithExtraComponents

      @Test public void testFunctionTableWithExtraComponents()
    • testXFunctionTable_with_decorator_constructor

      @Test public void testXFunctionTable_with_decorator_constructor()
    • processCleanTestString

      public void processCleanTestString(String expr, String expected) throws JepException
      Parse, process, cleans expr test equal to expected
      Parameters:
      expr -
      expected -
      Throws:
      JepException
    • cleanerTest

      public void cleanerTest(String expr, String expected) throws JepException
      parses, processes and cleans both expression, tests toString are equals
      Parameters:
      expr -
      expected -
      Throws:
      JepException
    • parseProcCleanEval

      public Node parseProcCleanEval(String expr, Object expected) throws ParseException, Exception
      Parse, process, clean and evaluated tests equal to expected
      Parameters:
      expr -
      expected -
      Returns:
      Throws:
      ParseException
      Exception
    • testLogical

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

      @Test public void testPrint() throws JepException
      Throws:
      JepException
    • testCleaner

      @Test public void testCleaner() throws JepException
      Throws:
      JepException
    • testExpand

      @Test public void testExpand() throws ParseException
      Throws:
      ParseException
    • testVariableReuse

      @Test public void testVariableReuse() throws Exception
      Throws:
      Exception
    • testReentrant

      @Test public void testReentrant() throws Exception
      Throws:
      Exception
    • testFormat

      @Test public void testFormat() throws Exception
      Overrides:
      testFormat in class JepTest
      Throws:
      Exception
    • testVarInEqn

      @Test public void testVarInEqn() throws Exception
      Throws:
      Exception
    • testUndecVar

      @Test public void testUndecVar() throws JepException
      Throws:
      JepException
    • testTreeBuild

      @Test public void testTreeBuild() throws Exception
      Throws:
      Exception
    • testSub

      @Test public void testSub() throws Exception
      Throws:
      Exception
    • test_sub_of_variable_with_equation

      @Test public void test_sub_of_variable_with_equation() throws Exception
      Throws:
      Exception
    • testNull

      @Disabled("test fails") @Test public void testNull() throws Exception
      Overrides:
      testNull in class JepTest
      Throws:
      Exception
    • preprocess_function_cause_argument_to_be_preprocessed_at_eval_time

      @Test public void preprocess_function_cause_argument_to_be_preprocessed_at_eval_time() throws JepException
      Throws:
      JepException
    • eval_function_cause_argument_to_be_evaluated_at_preprocessed_time

      @Test public void eval_function_cause_argument_to_be_evaluated_at_preprocessed_time() throws JepException
      Throws:
      JepException
    • build_expression_step_by_step_using_preprocess_eval_and_eqn

      @Test public void build_expression_step_by_step_using_preprocess_eval_and_eqn() throws JepException
      Throws:
      JepException
    • run_preprocessor_commands

      public void run_preprocessor_commands(XJep jep) throws JepException
      Throws:
      JepException
    • testSetupPreprocess_functions_using_xjep_constructor

      @Test public void testSetupPreprocess_functions_using_xjep_constructor() throws JepException
      Throws:
      JepException
    • testSetupPreprocess_functions_using_default_constructor

      @Test public void testSetupPreprocess_functions_using_default_constructor() throws JepException
      Throws:
      JepException
    • shallowcopy_of_preprocess_functions_are_new_instances_of_same_classes

      @Test public void shallowcopy_of_preprocess_functions_are_new_instances_of_same_classes() throws JepException
      Throws:
      JepException
    • testBernstein

      @Test public void testBernstein() throws JepException
      Throws:
      JepException
    • test_substitution_with_xvariable

      @Test public void test_substitution_with_xvariable() throws JepException
      Throws:
      JepException
    • test_xassign_with_preprocessor

      @Test public void test_xassign_with_preprocessor() throws JepException
      Three different cases:
      • XAssign with use equation == false, do nothing
      • use equation == true, var on lhs, set vars equation
      • use equation == true, LValueI on lhs do nothing
      • use equation == true, SymbolicLValueI on lhs, call setEqn()
      check preprocessing work
      Throws:
      JepException