crop image, more enum classes

This commit is contained in:
pantor
2017-08-20 13:15:57 +02:00
parent f2ac74fc5a
commit dd65af4457
5 changed files with 189 additions and 136 deletions

View File

@@ -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"}}
}}}
}}}
};