mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Added -w option
This commit is contained in:
1 parent
aa90972a31
commit
01c5ee0973
2 files changed
+60
-2
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#include "mongoose.c"
|
||||
|
||||
int main(void) {
|
||||
assert(match_prefix("/a/", 3, "/a/b/c") == 3);
|
||||
assert(match_prefix("/a/", 3, "/ab/c") == 0);
|
||||
assert(match_prefix("/*/", 3, "/ab/c") == 4);
|
||||
assert(match_prefix("**", 2, "/a/b/c") == 6);
|
||||
assert(match_prefix("/*", 2, "/a/b/c") == 2);
|
||||
assert(match_prefix("*/*", 3, "/a/b/c") == 2);
|
||||
assert(match_prefix("**/", 3, "/a/b/c") == 5);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user