diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-03-29 22:30:44 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-03-30 09:59:12 +0200 |
commit | 46792fe8434f98ca6d03c32978a3f89d196c745d (patch) | |
tree | 12c3acbd2b757b9017feec1e3c23e95153d2d51a /testing/tests/ws.rs | |
parent | 4ca966178c63bac1b6a803f2dc74bd43f27dcf24 (diff) | |
download | askama-46792fe8434f98ca6d03c32978a3f89d196c745d.tar.gz askama-46792fe8434f98ca6d03c32978a3f89d196c745d.tar.bz2 askama-46792fe8434f98ca6d03c32978a3f89d196c745d.zip |
Rename test types to PascalCase
Diffstat (limited to '')
-rw-r--r-- | testing/tests/ws.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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); }}; } |