aboutsummaryrefslogtreecommitdiff
path: root/tests/fs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fs')
-rw-r--r--tests/fs/path/driver.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/fs/path/driver.cxx b/tests/fs/path/driver.cxx
index 6c77e67..c6bf46a 100644
--- a/tests/fs/path/driver.cxx
+++ b/tests/fs/path/driver.cxx
@@ -112,11 +112,20 @@ main ()
assert (path ("./..").normalize ().string () == "..");
assert (path ("../.").normalize ().string () == "..");
assert (path ("foo/./..").normalize ().string () == "");
- assert (path ("C:/foo/./..").normalize ().string () == "c:");
+ assert (path ("C:/foo/./..").normalize ().string () == "C:");
assert (path ("./foo").normalize ().string () == "foo");
- assert (path ("C:").normalize ().string () == "c:");
- assert (path ("C:\\Foo12//Bar").normalize ().string () == "c:\\foo12\\bar");
+ assert (path ("C:").normalize ().string () == "C:");
+ assert (path ("C:\\Foo12//Bar").normalize ().string () == "C:\\Foo12\\Bar");
+#endif
+
+ // comparison
+ //
+ assert (path ("./foo") == path("./foo"));
+ assert (path ("./boo") < path("./foo"));
+#ifdef _WIN32
+ assert (path (".\\foo") == path("./FoO"));
+ assert (path (".\\boo") < path(".\\Foo"));
#endif
// posix_string