summaryrefslogtreecommitdiff
path: root/test/ylog.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/ylog.c')
-rw-r--r--test/ylog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ylog.c b/test/ylog.c
index 3a3009c..e8c2b1f 100644
--- a/test/ylog.c
+++ b/test/ylog.c
@@ -64,6 +64,7 @@ int main(int argc, char **argv) {
ylog_set_file_level(&file);
assert(file.level == -1);
} while(0);
+ T("", "5", 5);
T("", "*:5", 5);
T("", "*:0", 0);
T("", "*:9999", 9999); /* YLOG_MAX */
@@ -89,6 +90,12 @@ int main(int argc, char **argv) {
T("somex/file", "abc:3,some/*:4", -1);
T("somex/file", "abc:3,some/*:4,*:1", 1);
T("some/file", "abc:3,some/*:4,*:1", 4);
+ T("somex/file", "abc:3,some/*:4,1", 1);
+ T("some/file", "abc:3,some/*:4,1", 4);
+ T("some/file", "*:3,some/file:4", 3);
+ T("some/file", "3,some/file:4", 3);
+ T("some/file", "abc:1,*:3,some/file:4", 3);
+ T("some/file", "abc:1,3,some/file:4", 3);
#undef T
return 0;