use super::*; #[test] fn expand_should_substitute_values() { //given let template = "pre{param1}mid{param2}post"; let params = HashMap::from([("param1", "-v1-"), ("param2", "-v2-")]); //when let result = crate::template::expand(template, params); //then assert_eq!(result, "pre-v1-mid-v2-post"); }