From 97c8164bc81e0a438dab92d7244485005dac4ff2 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 23:45:23 +0200 Subject: literal braces are text, not placeholders, for containment and walk exclusion --- internal/engine/match_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/engine/match_test.go') diff --git a/internal/engine/match_test.go b/internal/engine/match_test.go index 477e06f..f2a01bc 100644 --- a/internal/engine/match_test.go +++ b/internal/engine/match_test.go @@ -267,6 +267,7 @@ func TestExcludeDirs(t *testing.T) { (rule "r7" (move "` + absDest + `")) (rule "r8" (copy "Backup")) (rule "r9" (rename "x-{name}")) +(rule "r10" (move "Lit/{{a}}/{mtime:%Y}")) ` main := writeConfig(t, h, `(include "dl")`, map[string]string{"dl": conf}) e, errs := Load(main) @@ -285,6 +286,7 @@ func TestExcludeDirs(t *testing.T) { absDest, // r7: absolute, already inside root filepath.Join(root, "Backup"), // r8: copy counts like move // r9 rename "x-{name}": rename is never a destination. + filepath.Join(root, "Lit", "{a}"), // r10: "{{a}}" is literal text } if !reflect.DeepEqual(got, want) { t.Fatalf("excludeDirs =\n%v\nwant\n%v", got, want) -- cgit v1.3