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

Function test_disasm_paging

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

Source from the content-addressed store, hash-verified

645
646 #[test]
647 fn test_disasm_paging() {
648 let t = Tester::default();
649 t.get_console().borrow_mut().set_interactive(true);
650 t.get_console().borrow_mut().set_size_chars(CharsXY { x: 80, y: 4 });
651 t.get_console().borrow_mut().add_input_keys(&[Key::NewLine]);
652 t.set_program(None, "A = 2 + 3")
653 .run("DISASM")
654 .expect_prints([
655 "0000: LOADI R64, 2 ; 1:5",
656 "0001: LOADI R65, 3 ; 1:9",
657 "0002: ADDI R64, R64, R65 ; 1:7",
658 " << Press any key for more; ESC or Ctrl+C to stop >> ",
659 "0003: EOF ; 0:0",
660 "",
661 ])
662 .expect_program(None as Option<&str>, "A = 2 + 3")
663 .check();
664 }
665
666 #[test]
667 fn test_disasm_code_errors() {

Callers

nothing calls this directly

Calls 9

set_interactiveMethod · 0.80
add_input_keysMethod · 0.80
expect_programMethod · 0.80
set_programMethod · 0.80
get_consoleMethod · 0.45
set_size_charsMethod · 0.45
checkMethod · 0.45
expect_printsMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected