()
| 3317 | |
| 3318 | #[test] |
| 3319 | fn test_backspace_word() { |
| 3320 | let mut state = TextEditState::default(); |
| 3321 | state.text = "hello world".to_string(); |
| 3322 | state.cursor_pos = 11; |
| 3323 | state.backspace_word(); |
| 3324 | assert_eq!(state.text, "hello "); |
| 3325 | assert_eq!(state.cursor_pos, 6); |
| 3326 | } |
| 3327 | |
| 3328 | #[test] |
| 3329 | fn test_delete_word_forward() { |
nothing calls this directly
no test coverage detected