()
| 386 | |
| 387 | #[test] |
| 388 | fn test_autoexec_compilation_error_is_ignored() { |
| 389 | let autoexec = "a = 1\nb = undef: c = 2"; |
| 390 | let tester = Tester::default().write_file("AUTOEXEC.BAS", autoexec); |
| 391 | let (console, storage) = (tester.get_console(), tester.get_storage()); |
| 392 | let mut continuation = tester.continue_from_here(); |
| 393 | block_on(try_load_autoexec(continuation.get_machine(), console, storage)).unwrap(); |
| 394 | continuation |
| 395 | .run("after = 5") |
| 396 | .expect_var("after", 5) |
| 397 | .expect_prints(["AUTOEXEC.BAS failed: 2:5: Undefined symbol undef"]) |
| 398 | .expect_file("MEMORY:/AUTOEXEC.BAS", autoexec) |
| 399 | .check(); |
| 400 | } |
| 401 | |
| 402 | #[test] |
| 403 | fn test_autoexec_execution_error_is_ignored() { |
nothing calls this directly
no test coverage detected