From 439a1b373d417a7d9273940082eb286b39f964f7 Mon Sep 17 00:00:00 2001 From: tdesveaux Date: Sun, 12 Aug 2018 15:17:20 +0200 Subject: [PATCH] Path normalize: Add test for server path (//) --- tests/base/test_path.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/base/test_path.lua b/tests/base/test_path.lua index d9683397..d5d82901 100755 --- a/tests/base/test_path.lua +++ b/tests/base/test_path.lua @@ -714,3 +714,8 @@ test.isequal("d:/test/..test/.test", path.normalize("d:/test/..test/test/../.test")) test.isequal("d:/test", path.normalize("d:/test/..test/../.test/..")) end + + function suite.normalize_serverpath() + test.isequal("//myawesomeserver/test", path.normalize("//myawesomeserver/test/")) + test.isequal("//myawesomeserver/test", path.normalize("///myawesomeserver/test/")) + end