diff --git a/tests/base/test_path.lua b/tests/base/test_path.lua index 40c9c11f..ae072ee7 100755 --- a/tests/base/test_path.lua +++ b/tests/base/test_path.lua @@ -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 \ No newline at end of file + end