diff options
Diffstat (limited to 'tests/test_expr.c')
-rw-r--r-- | tests/test_expr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_expr.c b/tests/test_expr.c index 1ea4f8d..da8f46a 100644 --- a/tests/test_expr.c +++ b/tests/test_expr.c @@ -126,6 +126,11 @@ static void test_expr_vars(void) assert(set_contains(set,"uidNumber")); assert(set_contains(set,"uid")); set_free(set); + /* a test with attribute options */ + set=set_new(); + assert(expr_vars("\"${homeDirectory;foo:-/home/something}\"",set)!=NULL); + assert(set_contains(set,"homeDirectory;foo")); + set_free(set); } /* the main program... */ |