MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / test_delete_forward

Function test_delete_forward

src/text_input.rs:3220–3227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3218
3219 #[test]
3220 fn test_delete_forward() {
3221 let mut state = TextEditState::default();
3222 state.text = "Hello".to_string();
3223 state.cursor_pos = 0;
3224 state.delete_forward();
3225 assert_eq!(state.text, "ello");
3226 assert_eq!(state.cursor_pos, 0);
3227 }
3228
3229 #[test]
3230 fn test_selection_delete() {

Callers

nothing calls this directly

Calls 1

delete_forwardMethod · 0.80

Tested by

no test coverage detected