()
| 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() { |
nothing calls this directly
no test coverage detected