Ejemplo n.º 1
0
unit_test(sanity check) {
    string_template_type const t("");
    ensure_equals(t.render_to_string(), "");
}}}
Ejemplo n.º 2
0
unit_test(missing tag) {
    string_template_type const t("{% xyz 42 %}");
    ensure_throws(s::missing_tag, t.render_to_string(context));
}}}
Ejemplo n.º 3
0
Archivo: tmpl.cpp Proyecto: ajg/synth
AJG_SYNTH_TEST_UNIT(sanity check) {
    string_template_type const t("");
    MUST_EQUAL(t.render_to_string(context), "");
}}}