()
| 878 | |
| 879 | #[test] |
| 880 | fn test_new_dirty_no_name_abort() { |
| 881 | for answer in NO_ANSWERS { |
| 882 | Tester::default() |
| 883 | .add_input_chars("modified unnamed file\n") |
| 884 | .add_input_chars(answer) |
| 885 | .run("EDIT: NEW") |
| 886 | .expect_prints([ |
| 887 | "Current program has unsaved changes and has never been saved!", |
| 888 | "NEW aborted; use SAVE to save your current changes.", |
| 889 | ]) |
| 890 | .expect_program(None as Option<&str>, "modified unnamed file\n") |
| 891 | .check(); |
| 892 | } |
| 893 | } |
| 894 | |
| 895 | #[test] |
| 896 | fn test_new_dirty_no_name_continue() { |
nothing calls this directly
no test coverage detected