fixed push_whack_pop to also handle directories
[feisty_meow.git] / nucleus / library / tests_filesystem / test_filename.cpp
index e237777788847890d54eaa60eeffee91fa797de7..54bba456d58d952109f11095c74695c8cc7f7d5c 100644 (file)
@@ -59,7 +59,9 @@ int test_filename::execute()
     astring GROUP = "separate-- ";
     filename turkey("/omega/ralph/turkey/buzzard.txt");
     string_array pieces;
-    turkey.separate(pieces);
+    bool rooted;
+    turkey.separate(rooted, pieces);
+    ASSERT_TRUE(rooted, GROUP + "the rooted value is erreonous.");
     ASSERT_TRUE(pieces[0].equal_to("omega"), GROUP + "the first piece didn't match.");
     ASSERT_TRUE(pieces[1].equal_to("ralph"), GROUP + "the second piece didn't match.");
     ASSERT_TRUE(pieces[2].equal_to("turkey"), GROUP + "the third piece didn't match.");
@@ -257,7 +259,7 @@ int test_filename::execute()
     filename test17("r/");
     ASSERT_EQUAL(test17, astring("r\\"), GROUP + "test 17 failed");
     filename test18("/kr/soop");
-    ASSERT_NOT_EQUAL(test18, astring("\\kr\\soop"), GROUP + "test 18 failed");
+    ASSERT_INEQUAL(test18, astring("\\kr\\soop"), GROUP + "test 18 failed");
   }
 #endif