MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_new_dirty_no_name_abort

Function test_new_dirty_no_name_abort

std/src/program.rs:880–893  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

expect_programMethod · 0.80
checkMethod · 0.45
expect_printsMethod · 0.45
runMethod · 0.45
add_input_charsMethod · 0.45

Tested by

no test coverage detected