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

Function test_load_dirty_no_name_abort

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

Source from the content-addressed store, hash-verified

751
752 #[test]
753 fn test_load_dirty_no_name_abort() {
754 for answer in NO_ANSWERS {
755 Tester::default()
756 .add_input_chars("modified unnamed file\n")
757 .add_input_chars(answer)
758 .write_file("other.bas", "other file\n")
759 .run("EDIT: LOAD \"other.bas\"")
760 .expect_prints([
761 "Current program has unsaved changes and has never been saved!",
762 "LOAD aborted; use SAVE to save your current changes.",
763 ])
764 .expect_program(None as Option<&str>, "modified unnamed file\n")
765 .expect_file("MEMORY:/other.bas", "other file\n")
766 .check();
767 }
768 }
769
770 #[test]
771 fn test_load_dirty_no_name_continue() {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected