The test program is displayed in the editor.
string "Incorrect distance in kilometers returned...
The debug engine starts, and test execution stops at the breakpoint.
The distance has been calculated as 7,703 (which happens to be the correct distance), and so the code is executing as it should. It is also asserting a failure correctly, but that is because the wrong value (4,787) was being tested for, as you can see from the following line:
if function numval(distance-km) not equal 4787...