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

Function test_delete_visual_range

src/text_input.rs:2836–2840  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2834
2835 #[test]
2836 fn test_delete_visual_range() {
2837 let new = delete_visual_range("{red|hello}", 1, 3);
2838 // visual "hello", delete visual 1..3 → remove "el""hlo"
2839 assert_eq!(new, "{red|hlo}");
2840 }
2841
2842 #[test]
2843 fn test_cleanup_empty_styles_removes_empty() {

Callers

nothing calls this directly

Calls 1

delete_visual_rangeFunction · 0.85

Tested by

no test coverage detected