Adds test for parent directory

Signed-off-by: Simon Howe <footless@gmail.com>
pull/2426/head
Simon Howe 3 years ago
parent aac07f03d8
commit 23c4c2f1aa

@ -42,6 +42,8 @@ func TestRelativePath_Set(t *testing.T) {
{"dot path", ".foo", "./.foo", false}, {"dot path", ".foo", "./.foo", false},
{"relative dot path", "./.foo", "./.foo", false}, {"relative dot path", "./.foo", "./.foo", false},
{"current directory", ".", "./", false}, {"current directory", ".", "./", false},
{"parent directory", "..", "./", false},
{"parent directory more qualified", "./..", "./", false},
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {

Loading…
Cancel
Save