origami-engine 0.1.3-alpha.7

A templating engine for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[test]
fn try_all() {
    let t = trybuild::TestCases::new();
    t.pass("tests/trybuild/pass/*.rs");

    #[cfg(feature = "html_escape")]
    t.compile_fail("tests/trybuild/fail/should_fail_when_html_escape_is_enabled_*.rs");

    #[cfg(not(feature = "html_escape"))]
    t.compile_fail("tests/trybuild/fail/should_fail_when_html_esape_is_disabled_*.rs");

    #[cfg(feature = "minify_html")]
    t.compile_fail("tests/trybuild/fail/should_fail_when_minify_html_is_enabled_*.rs");

    #[cfg(not(feature = "minify_html"))]
    t.compile_fail("tests/trybuild/fail/should_fail_when_minify_html_is_disabled_*.rs");
}