[cig-commits] r9116 - cs/benchmark/cigma/trunk/src/tests

luis at geodynamics.org luis at geodynamics.org
Tue Jan 22 19:22:50 PST 2008


Author: luis
Date: 2008-01-22 19:22:50 -0800 (Tue, 22 Jan 2008)
New Revision: 9116

Modified:
   cs/benchmark/cigma/trunk/src/tests/TestStringUtils.cpp
Log:
Added pathological test case for parse_dataset_path(). Needs fix.

Modified: cs/benchmark/cigma/trunk/src/tests/TestStringUtils.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/tests/TestStringUtils.cpp	2008-01-23 03:22:47 UTC (rev 9115)
+++ cs/benchmark/cigma/trunk/src/tests/TestStringUtils.cpp	2008-01-23 03:22:50 UTC (rev 9116)
@@ -21,10 +21,13 @@
         using namespace std;
         std::string vtkpath = "/path/to/file.vtk:temperature";
         std::string hdfpath = "/path/to/file.h5:/path/to/dataset";
-        std::string location, filename, ext;
+        std::string testpath = "/path/to/some/file.ext:foo:bar:baz";
 
-        parse_dataset_path(hdfpath, location, filename, ext);
-        std::cout << "path      = '" << hdfpath << "'\n";
+        std::string path, location, filename, ext;
+
+        path = testpath;
+        parse_dataset_path(path, location, filename, ext);
+        std::cout << "path      = '" << path << "'\n";
         std::cout << "filename  = '" << filename << "'\n";
         std::cout << "extension = '" << ext << "'\n";
         std::cout << "location  = '" << location << "'\n";



More information about the cig-commits mailing list