diff options
Diffstat (limited to 'test/fnmatch.awk')
-rw-r--r-- | test/fnmatch.awk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/fnmatch.awk b/test/fnmatch.awk new file mode 100644 index 00000000..e8ef9377 --- /dev/null +++ b/test/fnmatch.awk @@ -0,0 +1,10 @@ +@load "fnmatch" + +BEGIN { + print "FNM_NOMATCH =", FNM_NOMATCH + for (i in FNM) + printf("FNM[\"%s\"] = %d\n", i, FNM[i]) + + printf("fnmatch(\"*.a\", \"foo.a\", 0) = %d\n", fnmatch("*.a", "foo.a", 0) ) + printf("fnmatch(\"*.a\", \"foo.c\", 0) = %d\n", fnmatch("*.a", "foo.c", 0)) +} |