We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e72127 + cae1571 commit 48669b4Copy full SHA for 48669b4
test/libsolutil/Whiskers.cpp
@@ -85,6 +85,13 @@ BOOST_AUTO_TEST_CASE(conditional_with_else)
85
BOOST_CHECK_EQUAL(Whiskers(templ)("b", false).render(), "Y");
86
}
87
88
+BOOST_AUTO_TEST_CASE(broken_conditional_with_else)
89
+{
90
+ string templ = "<?b>X<!bY</b>";
91
+ BOOST_CHECK_EQUAL(Whiskers(templ)("b", true).render(), "X<!bY");
92
+ BOOST_CHECK_EQUAL(Whiskers(templ)("b", false).render(), "");
93
+}
94
+
95
BOOST_AUTO_TEST_CASE(conditional_plus_params)
96
{
97
string templ = " - <?b>_<r><!b>^<t></b> - ";
0 commit comments