From 46792fe8434f98ca6d03c32978a3f89d196c745d Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 29 Mar 2021 22:30:44 +0200 Subject: Rename test types to PascalCase --- testing/tests/gen_ws_tests.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testing/tests/gen_ws_tests.py') 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); }}; } -- cgit