From: Aki Tuomi Date: Tue, 5 Dec 2017 15:05:27 +0000 (+0200) Subject: lib: test-var-expand - Ensure var_get_key_range_full handles nested ifs correctly X-Git-Tag: 2.3.0.rc1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66bdf53dbb272c55bd2c5c4d3980f34296f1a95f;p=thirdparty%2Fdovecot%2Fcore.git lib: test-var-expand - Ensure var_get_key_range_full handles nested ifs correctly --- diff --git a/src/lib/test-var-expand.c b/src/lib/test-var-expand.c index 9c45af23fe..a10c84d74b 100644 --- a/src/lib/test-var-expand.c +++ b/src/lib/test-var-expand.c @@ -91,7 +91,8 @@ static void test_var_get_key_range(void) { "{key}", 1, 3 }, { "5.5Rk", 4, 1 }, { "5.5R{key}", 5, 3 }, - { "{key", 1, 3 } + { "{key", 1, 3 }, + { "{if;%{if;%{value};eq;value;t;f};eq;t;t;f}", 1, 39 }, }; unsigned int i, idx, size;