()
| 1115 | |
| 1116 | #[test] |
| 1117 | fn test_run_after_break_discards_old_program() { |
| 1118 | let program = r#"PRINT "stale""#; |
| 1119 | Tester::default() |
| 1120 | .set_program(None, program) |
| 1121 | .send_break() |
| 1122 | .continue_from_here() |
| 1123 | .run("RUN") |
| 1124 | .expect_err("Break") |
| 1125 | .expect_program(None as Option<String>, program) |
| 1126 | .check() |
| 1127 | .run(r#"SLEEP 0: PRINT "ok""#) |
| 1128 | .expect_prints(["ok"]) |
| 1129 | .expect_program(None as Option<String>, program) |
| 1130 | .check(); |
| 1131 | } |
| 1132 | |
| 1133 | #[test] |
| 1134 | fn test_run_errors() { |
nothing calls this directly
no test coverage detected