Class OverloadedFunctionByStructureTest
java.lang.Object
com.singularsys.jeptests.unit.misc.overloadedfunctions.OverloadedFunctionByStructureTest
Tests for
OverloadedFunctionByStructure-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetUp()voidvoidvoidWhen an OverloadedFunctionByStructure has a simple predicate that relies of the value of the first argument, sayn -> n.jjtGetChild(0).getValue() instanceof Stringbut the lhs is a function or operator node then the value will not be available at the time of the predicate test.voidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
OverloadedFunctionByStructureTest
public OverloadedFunctionByStructureTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
test_callback_and_binary_functions
- Throws:
Exception
-
test_two_binary_functions
- Throws:
Exception
-
test_getValue_predicate_fails_before_calculating_child
When an OverloadedFunctionByStructure has a simple predicate that relies of the value of the first argument, sayn -> n.jjtGetChild(0).getValue() instanceof Stringbut 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
- Throws:
Exception
-
test_two_unary_functions
- Throws:
Exception
-
test_nested_overloaded_functions
- 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
-