Commit 86688546 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5363] Added chained ifelse unit test

parent 373d2d91
......@@ -497,6 +497,13 @@ TEST_F(ExpressionsTest, evaluateString) {
"ifelse(option[100].exists,'foo','bar')", "foo");
testExpressionString(Option::V4,
"ifelse(option[200].exists,'foo','bar')", "bar");
// Check that ifelse can be chained.
testExpressionString(Option::V4,
"ifelse(option[200].exists,option[200].hex,"
"ifelse(option[100].exists,"
"option[100].hex,'none???'))",
"hundred4");
}
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment