]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-var-expand - Ensure var_get_key_range_full handles nested ifs correctly
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 5 Dec 2017 15:05:27 +0000 (17:05 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 5 Feb 2018 11:23:04 +0000 (13:23 +0200)
src/lib/test-var-expand.c

index 7f6e7444d25d8a06156731b729048650b0ad4b8d..9eb99e372c2268ae47c3a0460a0d59892b4b5db4 100644 (file)
@@ -88,7 +88,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;