()
| 751 | |
| 752 | #[test] |
| 753 | fn test_load_dirty_no_name_abort() { |
| 754 | for answer in NO_ANSWERS { |
| 755 | Tester::default() |
| 756 | .add_input_chars("modified unnamed file\n") |
| 757 | .add_input_chars(answer) |
| 758 | .write_file("other.bas", "other file\n") |
| 759 | .run("EDIT: LOAD \"other.bas\"") |
| 760 | .expect_prints([ |
| 761 | "Current program has unsaved changes and has never been saved!", |
| 762 | "LOAD aborted; use SAVE to save your current changes.", |
| 763 | ]) |
| 764 | .expect_program(None as Option<&str>, "modified unnamed file\n") |
| 765 | .expect_file("MEMORY:/other.bas", "other file\n") |
| 766 | .check(); |
| 767 | } |
| 768 | } |
| 769 | |
| 770 | #[test] |
| 771 | fn test_load_dirty_no_name_continue() { |
nothing calls this directly
no test coverage detected