]> 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)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 11 Dec 2017 11:48:57 +0000 (13:48 +0200)
src/lib/test-var-expand.c

index 9c45af23fe6f6bc5b00e3f2bf48d0ca85ee309f4..a10c84d74b56c7053b1b08ddb9b6c8ff696cd6cc 100644 (file)
@@ -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;