mirror of
https://github.com/pantor/inja.git
synced 2026-03-15 21:45:58 +00:00
Fix line statements
This commit is contained in:
@@ -82,6 +82,18 @@ TEST_CASE("types") {
|
||||
CHECK_THROWS_WITH( env.render("{% if is_happy %}{% if is_happy %}{% endif %}", data), "[inja.exception.parser_error] misordered if statement" );
|
||||
CHECK_THROWS_WITH( env.render("{% if is_happy %}{% else if is_happy %}{% end if %}", data), "[inja.exception.parser_error] misordered if statement" );
|
||||
}
|
||||
|
||||
SECTION("line statements") {
|
||||
CHECK( env.render(R"(## if is_happy
|
||||
Yeah!
|
||||
## endif)", data) == "Yeah!" );
|
||||
|
||||
CHECK( env.render(R"(## if is_happy
|
||||
## if is_happy
|
||||
Yeah!
|
||||
## endif
|
||||
## endif )", data) == "Yeah!" );
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("functions") {
|
||||
|
||||
Reference in New Issue
Block a user