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_insert_left_stick FAIL Running test: test_insert_large FAIL *** Results *** ** Test case "test_insert_left_stick": FAIL In ASSERT_EQUAL(actual_pre_order.str(), expected_pre_order), line 302: 9 0 1 2 3 4 5 6 7 8 != 9 8 7 6 5 4 3 2 1 0 ** Test case "test_insert_large": FAIL In ASSERT_EQUAL(actual_pre_order.str(), expected_pre_order), line 302: 50 5 10 13 15 25 30 35 40 60 65 67 75 77 80 85 90 != 50 25 10 5 15 13 35 30 40 75 65 60 67 85 77 80 90 *** Summary *** Out of 2 tests run: 2 failure(s), 0 error(s)
JOJ Answer
Running test: test_insert_left_stick PASS Running test: test_insert_large PASS *** Results *** ** Test case "test_insert_left_stick": PASS ** Test case "test_insert_large": PASS *** Summary *** Out of 2 tests run: 0 failure(s), 0 error(s)