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

Function test_run_after_break_discards_old_program

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

Source from the content-addressed store, hash-verified

1115
1116 #[test]
1117 fn test_run_after_break_discards_old_program() {
1118 let program = r#"PRINT "stale""#;
1119 Tester::default()
1120 .set_program(None, program)
1121 .send_break()
1122 .continue_from_here()
1123 .run("RUN")
1124 .expect_err("Break")
1125 .expect_program(None as Option<String>, program)
1126 .check()
1127 .run(r#"SLEEP 0: PRINT "ok""#)
1128 .expect_prints(["ok"])
1129 .expect_program(None as Option<String>, program)
1130 .check();
1131 }
1132
1133 #[test]
1134 fn test_run_errors() {

Callers

nothing calls this directly

Calls 8

expect_programMethod · 0.80
continue_from_hereMethod · 0.80
send_breakMethod · 0.80
set_programMethod · 0.80
checkMethod · 0.45
expect_printsMethod · 0.45
runMethod · 0.45
expect_errMethod · 0.45

Tested by

no test coverage detected