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

Function test_new_dirty_with_name_abort

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

Source from the content-addressed store, hash-verified

907
908 #[test]
909 fn test_new_dirty_with_name_abort() {
910 for answer in NO_ANSWERS {
911 Tester::default()
912 .add_input_chars("modified named file\n")
913 .add_input_chars(answer)
914 .set_program(Some("MEMORY:/named.bas"), "previous contents\n")
915 .run("EDIT: NEW")
916 .expect_prints([
917 "Current program MEMORY:/named.bas has unsaved changes!",
918 "NEW aborted; use SAVE to save your current changes.",
919 ])
920 .expect_program(
921 Some("MEMORY:/named.bas"),
922 "previous contents\nmodified named file\n",
923 )
924 .check();
925 }
926 }
927
928 #[test]
929 fn test_new_dirty_with_name_continue() {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected