()
| 907 | |
| 908 | #[test] |
| 909 | fn test_new_dirty_with_name_abort() { |
| 910 | for answer in NO_ANSWERS { |
| 911 | Tester::default() |
| 912 | .add_input_chars("modified named file\n") |
| 913 | .add_input_chars(answer) |
| 914 | .set_program(Some("MEMORY:/named.bas"), "previous contents\n") |
| 915 | .run("EDIT: NEW") |
| 916 | .expect_prints([ |
| 917 | "Current program MEMORY:/named.bas has unsaved changes!", |
| 918 | "NEW aborted; use SAVE to save your current changes.", |
| 919 | ]) |
| 920 | .expect_program( |
| 921 | Some("MEMORY:/named.bas"), |
| 922 | "previous contents\nmodified named file\n", |
| 923 | ) |
| 924 | .check(); |
| 925 | } |
| 926 | } |
| 927 | |
| 928 | #[test] |
| 929 | fn test_new_dirty_with_name_continue() { |
nothing calls this directly
no test coverage detected