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

Function test_disasm_ok

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

Source from the content-addressed store, hash-verified

629
630 #[test]
631 fn test_disasm_ok() {
632 Tester::default()
633 .set_program(None, "A = 2 + 3")
634 .run("DISASM")
635 .expect_prints([
636 "0000: LOADI R64, 2 ; 1:5",
637 "0001: LOADI R65, 3 ; 1:9",
638 "0002: ADDI R64, R64, R65 ; 1:7",
639 "0003: EOF ; 0:0",
640 "",
641 ])
642 .expect_program(None as Option<&str>, "A = 2 + 3")
643 .check();
644 }
645
646 #[test]
647 fn test_disasm_paging() {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected