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

Function test_save_unnamed_error

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

Source from the content-addressed store, hash-verified

1168
1169 #[test]
1170 fn test_save_unnamed_error() {
1171 Tester::default()
1172 .add_input_chars("modified file\n")
1173 .run("EDIT: SAVE")
1174 .expect_program(None as Option<&str>, "modified file\n")
1175 .expect_err("1:7: Unnamed program; please provide a filename")
1176 .check();
1177 }
1178
1179 #[test]
1180 fn test_save_errors() {

Callers

nothing calls this directly

Calls 5

expect_programMethod · 0.80
checkMethod · 0.45
expect_errMethod · 0.45
runMethod · 0.45
add_input_charsMethod · 0.45

Tested by

no test coverage detected