()
| 1056 | |
| 1057 | #[test] |
| 1058 | fn test_run_after_async_error_discards_old_program() { |
| 1059 | let program = r#"DIR "invalid:": PRINT "stale""#; |
| 1060 | Tester::default() |
| 1061 | .set_program(None, program) |
| 1062 | .continue_from_here() |
| 1063 | .run("RUN") |
| 1064 | .expect_clear() |
| 1065 | .expect_err("1:1: Drive 'INVALID' is not mounted") |
| 1066 | .expect_program(None as Option<String>, program) |
| 1067 | .check() |
| 1068 | .run(r#"PRINT "ok""#) |
| 1069 | .expect_clear() |
| 1070 | .expect_prints(["ok"]) |
| 1071 | .expect_program(None as Option<String>, program) |
| 1072 | .check(); |
| 1073 | } |
| 1074 | |
| 1075 | #[test] |
| 1076 | fn test_run_does_not_leave_error_handler_active() { |
nothing calls this directly
no test coverage detected