oops.. remove out paths.
This commit is contained in:
parent
b874b79597
commit
cd80c5a9c5
@ -277,7 +277,7 @@
|
||||
|
||||
function suite.join_ignoreLeadingDots()
|
||||
test.isequal("p1/p2/foo", path.join("p1/p2", "././foo"))
|
||||
end
|
||||
end
|
||||
|
||||
function suite.join_OnUptoParentOfBase()
|
||||
test.isequal("../../p1", path.join("p1/p2/p3/p4/p5/p6/p7/", "../../../../../../../../../p1"))
|
||||
@ -434,11 +434,11 @@
|
||||
end
|
||||
|
||||
function suite.normalize_singleDot()
|
||||
local p = path.normalize("../../generated/Protocol/External/BattlePay/./asterion.pb.cc")
|
||||
test.isequal("../../generated/Protocol/External/BattlePay/asterion.pb.cc", p)
|
||||
local p = path.normalize("../../p1/p2/p3/p4/./a.pb.cc")
|
||||
test.isequal("../../p1/p2/p3/p4/a.pb.cc", 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"))
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user