From 9800a5ab6499a7d3488fc4db49d92b5f156b3940 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 7 Jan 2017 21:01:46 +0100 Subject: Rename it_works() test function to test_variables() --- testing/tests/simple.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/tests') diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs index 0943f12..c287c5f 100644 --- a/testing/tests/simple.rs +++ b/testing/tests/simple.rs @@ -8,15 +8,15 @@ use askama::Template; #[derive(Template)] #[template(path = "simple.html")] -struct TestTemplate { +struct VariablesTemplate { strvar: String, num: i64, i18n: String, } #[test] -fn it_works() { - let s = TestTemplate { +fn test_variables() { + let s = VariablesTemplate { strvar: "foo".to_string(), num: 42, i18n: "Iñtërnâtiônàlizætiøn".to_string(), -- cgit