()
| 919 | |
| 920 | #[test] |
| 921 | fn test_move_in_empty_file() { |
| 922 | let mut cb = MockConsole::default(); |
| 923 | cb.set_size_chars(yx(10, 40)); |
| 924 | let mut ob = OutputBuilder::new(yx(10, 40)); |
| 925 | ob = ob.refresh(linecol(0, 0), &[""], yx(0, 0)); |
| 926 | |
| 927 | for k in &[ |
| 928 | Key::ArrowUp, |
| 929 | Key::ArrowDown, |
| 930 | Key::ArrowLeft, |
| 931 | Key::ArrowRight, |
| 932 | Key::PageUp, |
| 933 | Key::PageDown, |
| 934 | ] { |
| 935 | cb.add_input_keys(&[*k]); |
| 936 | ob = ob.quick_refresh(linecol(0, 0), yx(0, 0)); |
| 937 | } |
| 938 | |
| 939 | run_editor("", "\n", cb, ob); |
| 940 | } |
| 941 | |
| 942 | #[test] |
| 943 | fn test_move_end() { |
nothing calls this directly
no test coverage detected