[whiskers] Add check that template contain tags.

This commit is contained in:
Alexander Arlt
2021-01-20 15:26:34 -05:00
parent a75b87c80e
commit 061fecbc90
6 changed files with 38 additions and 22 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE(parameter_collision)
vector<map<string, string>> list(1);
list[0]["a"] = "x";
Whiskers m(templ);
m("a", "X")("b", list);
BOOST_CHECK_THROW(m("a", "X")("b", list), WhiskersError);
BOOST_CHECK_THROW(m.render(), WhiskersError);
}