Using slash, "/" as the universal directory separator throughout the code

This commit is contained in:
Sergey Lyubka committed 2012-09-20 18:20:41 +01:00
1 parent d82f6b7607
commit 167338f216
2 files changed
+24 -34

No files matched your search

+2 -5
View File
@@ -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);
}