mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Using slash, "/" as the universal directory separator throughout the code
This commit is contained in:
1 parent
d82f6b7607
commit
167338f216
2 files changed
+24
-34
No files matched your search
+2
-5
@@ -112,17 +112,14 @@ static void test_remove_double_dots() {
|
||||
{"/...///", "/./"},
|
||||
{"/a...///", "/a.../"},
|
||||
{"/.x", "/.x"},
|
||||
#if defined(_WIN32)
|
||||
{"/\\", "/"},
|
||||
#else
|
||||
{"/\\", "/\\"},
|
||||
#endif
|
||||
{"/a\\", "/a\\"},
|
||||
{"/a\\\\...", "/a\\."},
|
||||
};
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(data); i++) {
|
||||
//printf("[%s] -> [%s]\n", data[i].before, data[i].after);
|
||||
printf("[%s] -> [%s]\n", data[i].before, data[i].after);
|
||||
remove_double_dots_and_double_slashes(data[i].before);
|
||||
ASSERT(strcmp(data[i].before, data[i].after) == 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user