Path normalize: Add test with trailing dot
This commit is contained in:
parent
fec912ddac
commit
051ed6a1ab
@ -677,6 +677,11 @@
|
||||
test.isequal("../../p1/p2/p3/p4/a.pb.cc", p)
|
||||
end
|
||||
|
||||
function suite.normalize_trailingSingleDot()
|
||||
local p = path.normalize("../../p1/p2/p3/p4/./.")
|
||||
test.isequal("../../p1/p2/p3/p4", p)
|
||||
end
|
||||
|
||||
function suite.normalize()
|
||||
test.isequal("d:/ProjectB/bin", path.normalize("d:/ProjectA/../ProjectB/bin"))
|
||||
test.isequal("/ProjectB/bin", path.normalize("/ProjectA/../ProjectB/bin"))
|
||||
|
Loading…
Reference in New Issue
Block a user