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

Function test_insert_at_visual

src/text_input.rs:2827–2833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2825
2826 #[test]
2827 fn test_insert_at_visual() {
2828 let (new, pos) = insert_at_visual("{red|hello}", 3, "XY");
2829 // visual "hello", insert "XY" at pos 3 → "helXYlo"
2830 // raw: {red| + hel + XY + lo + }
2831 assert_eq!(new, "{red|helXYlo}");
2832 assert_eq!(pos, 5);
2833 }
2834
2835 #[test]
2836 fn test_delete_visual_range() {

Callers

nothing calls this directly

Calls 1

insert_at_visualFunction · 0.85

Tested by

no test coverage detected