Enable baseNameOf test
Add note about removal of trailing slashes in the doc comment of baseNameOf and enabled the test.
This commit is contained in:
@@ -127,11 +127,9 @@ namespace nix {
|
||||
ASSERT_EQ(p1, "");
|
||||
}
|
||||
|
||||
// XXX: according to the doc of `baseNameOf`, baseNameOf("/dir/") should return
|
||||
// "" but it actually returns "dir"
|
||||
TEST(baseNameOf, DISABLED_trailingSlash) {
|
||||
TEST(baseNameOf, trailingSlash) {
|
||||
auto p1 = baseNameOf("/dir/");
|
||||
ASSERT_EQ(p1, "");
|
||||
ASSERT_EQ(p1, "dir");
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user