()
| 786 | |
| 787 | #[test] |
| 788 | fn test_inkey_interrupt_is_break() { |
| 789 | Tester::default() |
| 790 | .add_input_keys(&[Key::Interrupt, Key::Char('x')]) |
| 791 | .run("result = INKEY") |
| 792 | .expect_err("Break") |
| 793 | .check() |
| 794 | .run("result = INKEY") |
| 795 | .expect_var("result", "x") |
| 796 | .check(); |
| 797 | } |
| 798 | |
| 799 | #[test] |
| 800 | fn test_input_ok() { |
nothing calls this directly
no test coverage detected