mirror of
https://github.com/pantor/inja.git
synced 2026-04-05 23:58:53 +00:00
crop image, more enum classes
This commit is contained in:
@@ -75,11 +75,11 @@ TEST_CASE("Parse structure") {
|
||||
}
|
||||
|
||||
SECTION("Basic conditional") {
|
||||
std::string test = "{% if true %}dfgh{% endif %}";
|
||||
std::string test = "{% if true %}Hello{% endif %}";
|
||||
json result = {
|
||||
{{"type", Type::Condition}, {"children", {
|
||||
{{"type", Type::ConditionBranch}, {"command", "if true"}, {"children", {
|
||||
{{"type", Type::String}, {"text", "dfgh"}}
|
||||
{{"type", Type::String}, {"text", "Hello"}}
|
||||
}}}
|
||||
}}}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user