allow Path::join() to take an arbitrary number of arguments

This commit is contained in:
josh committed 2016-07-06 22:41:42 -04:00
1 parent 2012591b27
commit 725a0f22a1
3 files changed
+22 -2

No files matched your search

+5
View File
@@ -62,6 +62,11 @@ TEST(Path_join, does_not_add_extra_slash_when_first_path_already_ends_with_one)
EXPECT_EQ("/var/run", Path::join("/var/", "run"));
}
TEST(Path_join, allows_arbitrary_number_of_arguments)
{
EXPECT_EQ("/usr/local/share/jes/runtime", Path::join("/usr/local/", "share", "jes/", "runtime"));
}
TEST(Path_is_file, returns_true_for_file)
{