dovecot-2.2: var_expand*(): Added small unit tests for %H and %N
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 6 12:43:04 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/561f36451dc2
changeset: 16474:561f36451dc2
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 06 12:42:34 2013 +0300
description:
var_expand*(): Added small unit tests for %H and %N
diffstat:
src/lib/test-var-expand.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 956324a5fc86 -r 561f36451dc2 src/lib/test-var-expand.c
--- a/src/lib/test-var-expand.c Thu Jun 06 12:36:30 2013 +0300
+++ b/src/lib/test-var-expand.c Thu Jun 06 12:42:34 2013 +0300
@@ -21,9 +21,15 @@
static struct var_expand_test tests[] = {
{ "%{hostname}", NULL },
{ "%{pid}", NULL },
- { "a%{env:FOO}b", "abaRb" }
+ { "a%{env:FOO}b", "abaRb" },
+ { "%50Hv", "1f" },
+ { "%50Hw", "2e" },
+ { "%50Nv", "25" },
+ { "%50Nw", "e" }
};
static struct var_expand_table table[] = {
+ { 'v', "value", NULL },
+ { 'w', "value2", NULL },
{ '\0', NULL, NULL }
};
string_t *str = t_str_new(128);
More information about the dovecot-cvs
mailing list