()
| 3819 | #[test] |
| 3820 | #[cfg(feature = "text-styling")] |
| 3821 | fn test_no_styles_delete_forward() { |
| 3822 | let mut s = make_no_styles_state("{red|abc}"); |
| 3823 | // Put cursor at content 1 (before 'b') |
| 3824 | s.cursor_pos = styling::content_to_cursor(&s.text, 1, true); |
| 3825 | s.delete_forward_styled(); |
| 3826 | let stripped = styling::strip_styling(&s.text); |
| 3827 | assert_eq!(stripped, "ac"); |
| 3828 | let cp = styling::cursor_to_content(&s.text, s.cursor_pos); |
| 3829 | assert_eq!(cp, 1); |
| 3830 | } |
| 3831 | |
| 3832 | #[test] |
| 3833 | #[cfg(feature = "text-styling")] |
nothing calls this directly
no test coverage detected