From bdc2278a3030bc991fa650ff4188b178eff26300 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 21 Dec 2020 18:23:16 +0000 Subject: [PATCH] alias: fix tests after parsing of ... change #4862 This was broken in ea8d13d841d28c5e fs: Fix parsing of .. when joining remotes --- backend/alias/alias_internal_test.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/alias/alias_internal_test.go b/backend/alias/alias_internal_test.go index 830dbcb1a..5839a9fff 100644 --- a/backend/alias/alias_internal_test.go +++ b/backend/alias/alias_internal_test.go @@ -54,14 +54,15 @@ func TestNewFS(t *testing.T) { {"four/under four.txt", 9, false}, }}, {"four", "..", "", true, []testEntry{ - {"four", -1, true}, - {"one%.txt", 6, false}, - {"three", -1, true}, - {"two.html", 7, false}, + {"five", -1, true}, + {"under four.txt", 9, false}, }}, - {"four", "../three", "", true, []testEntry{ + {"", "../../three", "", true, []testEntry{ {"underthree.txt", 9, false}, }}, + {"four", "../../five", "", true, []testEntry{ + {"underfive.txt", 6, false}, + }}, } { what := fmt.Sprintf("test %d remoteRoot=%q, fsRoot=%q, fsList=%q", testi, test.remoteRoot, test.fsRoot, test.fsList)