Ensure that pushing empty path works as before

Fixes: https://github.com/rust-lang/rust/issues/89658
This commit is contained in:
Sean Young
2021-10-08 09:59:33 +01:00
parent 7807a694c2
commit 1bb399c342
2 changed files with 5 additions and 1 deletions

View File

@@ -1271,6 +1271,7 @@ pub fn test_push() {
tp!(r"\\?\A:\x\y", "/foo", r"\\?\A:\foo");
tp!(r"\\?\A:", r"..\foo\.", r"\\?\A:\foo");
tp!(r"\\?\A:\x\y", r".\foo\.", r"\\?\A:\x\y\foo");
tp!(r"\\?\A:\x\y", r"", r"\\?\A:\x\y\");
}
}