diff options
-rw-r--r-- | testing/tests/gen_ws_tests.py | 10 | ||||
-rw-r--r-- | testing/tests/ws.rs | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/testing/tests/gen_ws_tests.py b/testing/tests/gen_ws_tests.py index c2e24cb..5d2a332 100644 --- a/testing/tests/gen_ws_tests.py +++ b/testing/tests/gen_ws_tests.py @@ -115,9 +115,9 @@ macro_rules! test_template { ($source:literal, $rendered:expr) => {{ #[derive(Template)] #[template(source = $source, ext = "txt")] - struct CondWS; + struct CondWs; - assert_eq!(CondWS.render().unwrap(), $rendered); + assert_eq!(CondWs.render().unwrap(), $rendered); }}; } @@ -148,12 +148,12 @@ macro_rules! test_match { ($source:literal, $some_rendered:expr, $none_rendered:expr) => {{ #[derive(Template)] #[template(source = $source, ext = "txt")] - struct MatchWS { + struct MatchWs { item: Option<&'static str>, } - assert_eq!(MatchWS { item: Some("foo") }.render().unwrap(), $some_rendered); - assert_eq!(MatchWS { item: None }.render().unwrap(), $none_rendered); + assert_eq!(MatchWs { item: Some("foo") }.render().unwrap(), $some_rendered); + assert_eq!(MatchWs { item: None }.render().unwrap(), $none_rendered); }}; } diff --git a/testing/tests/ws.rs b/testing/tests/ws.rs index 3f62da5..3b4eb16 100644 --- a/testing/tests/ws.rs +++ b/testing/tests/ws.rs @@ -6,9 +6,9 @@ macro_rules! test_template { ($source:literal, $rendered:expr) => {{ #[derive(Template)] #[template(source = $source, ext = "txt")] - struct CondWS; + struct CondWs; - assert_eq!(CondWS.render().unwrap(), $rendered); + assert_eq!(CondWs.render().unwrap(), $rendered); }}; } @@ -167,12 +167,12 @@ macro_rules! test_match { ($source:literal, $some_rendered:expr, $none_rendered:expr) => {{ #[derive(Template)] #[template(source = $source, ext = "txt")] - struct MatchWS { + struct MatchWs { item: Option<&'static str>, } - assert_eq!(MatchWS { item: Some("foo") }.render().unwrap(), $some_rendered); - assert_eq!(MatchWS { item: None }.render().unwrap(), $none_rendered); + assert_eq!(MatchWs { item: Some("foo") }.render().unwrap(), $some_rendered); + assert_eq!(MatchWs { item: None }.render().unwrap(), $none_rendered); }}; } |