Class OverloadedFunctionByStructureTest

java.lang.Object
com.singularsys.jeptests.unit.misc.overloadedfunctions.OverloadedFunctionByStructureTest

public class OverloadedFunctionByStructureTest extends Object
  • Constructor Details

    • OverloadedFunctionByStructureTest

      public OverloadedFunctionByStructureTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp() throws Exception
      Throws:
      Exception
    • test_callback_and_binary_functions

      @Test public void test_callback_and_binary_functions() throws Exception
      Throws:
      Exception
    • test_two_binary_functions

      @Test public void test_two_binary_functions() throws Exception
      Throws:
      Exception
    • test_getValue_predicate_fails_before_calculating_child

      @Test public void test_getValue_predicate_fails_before_calculating_child() throws Exception
      When an OverloadedFunctionByStructure has a simple predicate that relies of the value of the first argument, say n -> n.jjtGetChild(0).getValue() instanceof String but the lhs is a function or operator node then the value will not be available at the time of the predicate test.
      Throws:
      Exception
    • test_with_bifunction

      @Test public void test_with_bifunction() throws Exception
      Throws:
      Exception
    • test_two_unary_functions

      @Test public void test_two_unary_functions() throws Exception
      Throws:
      Exception
    • test_nested_overloaded_functions

      @Test public void test_nested_overloaded_functions() throws Exception
      Throws:
      Exception
    • test_init_calls_components

      @Test public void test_init_calls_components()
    • test_lightweightInstance_makes_a_copy_with_lightweight_instances_of_functions

      @Test public void test_lightweightInstance_makes_a_copy_with_lightweight_instances_of_functions()
    • test_number_of_parameters_is_num_params_of_first_function

      @Test public void test_number_of_parameters_is_num_params_of_first_function()
    • test_can_construct_with_missmatched_functions

      @Test public void test_can_construct_with_missmatched_functions()
    • evaluation_with_wrong_number_of_argument_throws_evaluation_exceptiona

      @Test public void evaluation_with_wrong_number_of_argument_throws_evaluation_exceptiona() throws JepException
      Throws:
      JepException