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

Function test_new_dirty_no_name_continue

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

Source from the content-addressed store, hash-verified

894
895 #[test]
896 fn test_new_dirty_no_name_continue() {
897 for answer in YES_ANSWERS {
898 Tester::default()
899 .add_input_chars("modified unnamed file\n")
900 .add_input_chars(answer)
901 .run("EDIT: NEW")
902 .expect_prints(["Current program has unsaved changes and has never been saved!"])
903 .expect_clear()
904 .check();
905 }
906 }
907
908 #[test]
909 fn test_new_dirty_with_name_abort() {

Callers

nothing calls this directly

Calls 5

expect_clearMethod · 0.80
checkMethod · 0.45
expect_printsMethod · 0.45
runMethod · 0.45
add_input_charsMethod · 0.45

Tested by

no test coverage detected