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 +++++----- testing/tests/ws.rs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'testing') 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); }}; } -- cgit