()
| 769 | |
| 770 | #[test] |
| 771 | fn test_load_dirty_no_name_continue() { |
| 772 | for answer in YES_ANSWERS { |
| 773 | Tester::default() |
| 774 | .add_input_chars("modified unnamed file\n") |
| 775 | .add_input_chars(answer) |
| 776 | .write_file("other.bas", "other file\n") |
| 777 | .run("EDIT: LOAD \"other.bas\"") |
| 778 | .expect_prints(["Current program has unsaved changes and has never been saved!"]) |
| 779 | .expect_clear() |
| 780 | .expect_program(Some("MEMORY:other.bas"), "other file\n") |
| 781 | .expect_file("MEMORY:/other.bas", "other file\n") |
| 782 | .check(); |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | #[test] |
| 787 | fn test_load_dirty_with_name_abort() { |
nothing calls this directly
no test coverage detected