summaryrefslogtreecommitdiff
path: root/src/path-test.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2008-08-15 22:47:07 +0000
committerjhurst <>2008-08-15 22:47:07 +0000
commita6d7c84d3734a21dbe7112a3a83b791ec211a315 (patch)
tree2e10284ae3b386cf0cbf3df7f8924d7e9a78a4b5 /src/path-test.cpp
parent4e404673b69a7e2772579788a0b55c7037cee314 (diff)
removed extraneous assert(), added multi-/ test to path-test.cpp
Diffstat (limited to 'src/path-test.cpp')
-rw-r--r--src/path-test.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/path-test.cpp b/src/path-test.cpp
index 0c5f969..c0bbce6 100644
--- a/src/path-test.cpp
+++ b/src/path-test.cpp
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2004-2007, John Hurst
+Copyright (c) 2004-2008, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -84,6 +84,14 @@ main(int argc, const char** argv)
assert(PathSetExtension("foo.bar", "") == "foo");
assert(PathSetExtension(Path_3, "xml") == "baz.xml");
+ string Path_7 = "//tmp///////fooo";
+
+ PathCompList_t PathList_7;
+ PathToComponents(Path_7, PathList_7);
+ for ( PathCompList_t::const_iterator i = PathList_7.begin(); i != PathList_7.end(); i++ )
+ fprintf(stderr, "xx: \"%s\"\n", i->c_str());
+ assert(PathsAreEquivalent(PathMakeLocal(PathMakeCanonical(Path_7), "/tmp"), "fooo"));
+
PathList_t InList, OutList;
InList.push_back("tmp");
InList.push_back("Darwin");