add_loop_exit_test
Description:
[ Version ( since = "0.9.7" ) ]
public void add_loop_exit_test (TFun tf, int expected_exit_value, int s, int e)
public void add_loop_exit_test (TFun tf, int expected_exit_value, int s, int e)
Add a looping test function with an expected exit value to a test case
The test will be called in a for(i = s; i < e; i++) loop with each iteration being executed in a new context. The loop variable 'i' is available in the test.
The added test is expected to terminate by exiting with the given value
Parameters:
tf |
function to add to test case |
expected_exit_value |
exit value for test function to return in order for the test to be considered passing |
s |
starting index for value "i" in test |
e |
ending index for value "i" in test |
Since:
0.9.7