From f6423a2be4cb62edd7189842c59c6ec903a4d900 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 21 Apr 2022 16:28:12 +0200 Subject: Add test for new `whitespace` parameter value: "minimize" --- askama_shared/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 3e87242..b6b478b 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -705,5 +705,14 @@ mod tests { ) .unwrap(); assert_eq!(config.whitespace, WhitespaceHandling::Preserve); + + let config = Config::new( + r#" + [general] + whitespace = "minimize" + "#, + ) + .unwrap(); + assert_eq!(config.whitespace, WhitespaceHandling::Minimize); } } -- cgit