()
| 941 | |
| 942 | #[test] |
| 943 | fn test_move_end() { |
| 944 | let mut cb = MockConsole::default(); |
| 945 | cb.set_size_chars(yx(10, 40)); |
| 946 | let mut ob = OutputBuilder::new(yx(10, 40)); |
| 947 | ob = ob.refresh(linecol(0, 0), &["text"], yx(0, 0)); |
| 948 | |
| 949 | cb.add_input_keys(&[Key::End]); |
| 950 | ob = ob.quick_refresh(linecol(0, 4), yx(0, 4)); |
| 951 | |
| 952 | cb.add_input_chars("."); |
| 953 | ob = ob.set_dirty(); |
| 954 | ob = ob.add(CapturedOut::Write(".".to_string())); |
| 955 | ob = ob.quick_refresh(linecol(0, 5), yx(0, 5)); |
| 956 | |
| 957 | run_editor("text", "text.\n", cb, ob); |
| 958 | } |
| 959 | |
| 960 | #[test] |
| 961 | fn test_move_home_no_indent() { |
nothing calls this directly
no test coverage detected