From aac07f03d867e058af257b8b914ebd4ba4f3d1ec Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Mon, 14 Feb 2022 10:44:56 +0100 Subject: [PATCH] Adds test for using dot to represent pwd Signed-off-by: Simon Howe --- internal/flags/safe_relative_path_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/flags/safe_relative_path_test.go b/internal/flags/safe_relative_path_test.go index 5c74ca28..86ba64da 100644 --- a/internal/flags/safe_relative_path_test.go +++ b/internal/flags/safe_relative_path_test.go @@ -41,6 +41,7 @@ func TestRelativePath_Set(t *testing.T) { {"double relative empty path", "././", "./", false}, {"dot path", ".foo", "./.foo", false}, {"relative dot path", "./.foo", "./.foo", false}, + {"current directory", ".", "./", false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {