diff --git a/src/dynamic_value/dynamic_string.rs b/src/dynamic_value/dynamic_string.rs index fe52293..cad4b3d 100644 --- a/src/dynamic_value/dynamic_string.rs +++ b/src/dynamic_value/dynamic_string.rs @@ -316,4 +316,18 @@ mod tests { matches!(&tokens[0], DynamicStringSegment::Script(script) if script.cmd == "echo #hello") ); } + + #[test] + fn test_pango_attribute() { + const INPUT: &str = "hello"; + let (tokens, _) = parse_input(INPUT); + + assert_eq!(tokens.len(), 3); + + assert!(matches!(&tokens[0], DynamicStringSegment::Static(str) if str == "hello")) + } }