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

Function test_load_dirty_no_name_continue

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

Source from the content-addressed store, hash-verified

769
770 #[test]
771 fn test_load_dirty_no_name_continue() {
772 for answer in YES_ANSWERS {
773 Tester::default()
774 .add_input_chars("modified unnamed file\n")
775 .add_input_chars(answer)
776 .write_file("other.bas", "other file\n")
777 .run("EDIT: LOAD \"other.bas\"")
778 .expect_prints(["Current program has unsaved changes and has never been saved!"])
779 .expect_clear()
780 .expect_program(Some("MEMORY:other.bas"), "other file\n")
781 .expect_file("MEMORY:/other.bas", "other file\n")
782 .check();
783 }
784 }
785
786 #[test]
787 fn test_load_dirty_with_name_abort() {

Callers

nothing calls this directly

Calls 8

expect_programMethod · 0.80
expect_clearMethod · 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