From 81703d4ad4c7dd5746f67947371bdef5a38b2ad7 Mon Sep 17 00:00:00 2001 From: Benoit Favre Date: Tue, 16 Feb 2021 20:20:37 +0100 Subject: Fix bug in removeDotSegments: added test (#17050) * Fix bug in removeDotSegments when path ends with dot * Add test for trailing period bug in uri --- tests/stdlib/turi.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/stdlib/turi.nim b/tests/stdlib/turi.nim index 1abab7a19..07f3f17f8 100644 --- a/tests/stdlib/turi.nim +++ b/tests/stdlib/turi.nim @@ -174,6 +174,7 @@ template main() = block: # removeDotSegments doAssert removeDotSegments("/foo/bar/baz") == "/foo/bar/baz" doAssert removeDotSegments("") == "" # empty test + doAssert removeDotSegments(".") == "." # trailing period block: # bug #3207 doAssert parseUri("http://qq/1").combine(parseUri("https://qqq")).`$` == "https://qqq" -- cgit 1.4.1-2-gfad0