aboutsummaryrefslogblamecommitdiffstats
path: root/testing/tests/comparison.rs
blob: 20214a051884f643689f1f0fdee30f1c9618302e (plain) (tree)
1
2
3
4
5
6
7
8
9






                           

                                     





             


                                                       
 
extern crate askama;
#[macro_use]
extern crate askama_derive;

use askama::Template;

#[derive(Template)]
#[template(path = "comparison.html")]
struct ComparisonTemplate {
    a: usize,
    b: usize,
    c: usize,
}

#[test]
fn test_comparison() {
    let t = ComparisonTemplate { a: 1, b: 1, c: 2 };
    assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf\n");
}