Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Running test: test_erase_multiple_from_front Checking elements forward Checking elements in reverse. PASS Running test: test_erase_multiple_from_end Checking elements forward Did not reach end at expected length of 7 FAIL *** Results *** ** Test case "test_erase_multiple_from_front": PASS ** Test case "test_erase_multiple_from_end": FAIL In ASSERT_TRUE(containers_equal(has_elts, result, result_size)), line 239: Expected true, but was false *** Summary *** Out of 2 tests run: 1 failure(s), 0 error(s)
JOJ Answer
Running test: test_erase_multiple_from_front Checking elements forward Checking elements in reverse. PASS Running test: test_erase_multiple_from_end Checking elements forward Checking elements in reverse. PASS *** Results *** ** Test case "test_erase_multiple_from_front": PASS ** Test case "test_erase_multiple_from_end": PASS *** Summary *** Out of 2 tests run: 0 failure(s), 0 error(s)