From 744b290c8d34c905f285c4b6e675e42281e83204 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 3 Jan 2017 10:06:47 +0100 Subject: Rename askama_test to testing --- askama_test/tests/simple.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 askama_test/tests/simple.rs (limited to 'askama_test/tests') diff --git a/askama_test/tests/simple.rs b/askama_test/tests/simple.rs deleted file mode 100644 index 0943f12..0000000 --- a/askama_test/tests/simple.rs +++ /dev/null @@ -1,28 +0,0 @@ -#![feature(proc_macro)] - -#[macro_use] -extern crate askama_derive; -extern crate askama; - -use askama::Template; - -#[derive(Template)] -#[template(path = "simple.html")] -struct TestTemplate { - strvar: String, - num: i64, - i18n: String, -} - -#[test] -fn it_works() { - let s = TestTemplate { - strvar: "foo".to_string(), - num: 42, - i18n: "Iñtërnâtiônàlizætiøn".to_string(), - }; - assert_eq!(s.render(), "hello world, foo\n\ - with number: 42\n\ - Iñtërnâtiônàlizætiøn is important\n\ - in vars too: Iñtërnâtiônàlizætiøn\n"); -} -- cgit