aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-03-29 22:30:44 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-03-30 09:59:12 +0200
commit46792fe8434f98ca6d03c32978a3f89d196c745d (patch)
tree12c3acbd2b757b9017feec1e3c23e95153d2d51a /testing/tests
parent4ca966178c63bac1b6a803f2dc74bd43f27dcf24 (diff)
downloadaskama-46792fe8434f98ca6d03c32978a3f89d196c745d.tar.gz
askama-46792fe8434f98ca6d03c32978a3f89d196c745d.tar.bz2
askama-46792fe8434f98ca6d03c32978a3f89d196c745d.zip
Rename test types to PascalCase
Diffstat (limited to '')
-rw-r--r--testing/tests/gen_ws_tests.py10
-rw-r--r--testing/tests/ws.rs10
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);
}};
}