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

Function test_cleanup_empty_styles_removes_empty

src/text_input.rs:2843–2846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2841
2842 #[test]
2843 fn test_cleanup_empty_styles_removes_empty() {
2844 let (result, _) = cleanup_empty_styles("{red|}", 999);
2845 assert_eq!(result, ""); // cursor not inside, remove it
2846 }
2847
2848 #[test]
2849 fn test_cleanup_empty_styles_keeps_if_cursor_inside() {

Callers

nothing calls this directly

Calls 1

cleanup_empty_stylesFunction · 0.85

Tested by

no test coverage detected