aboutsummaryrefslogtreecommitdiff
path: root/internal/engine/exclude_test.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 23:53:54 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 23:53:54 +0200
commit0b155e8df3205aebf129091b517f4116665a5adc (patch)
tree2215aa05b1d703f9b37badd96aa94a95fd2b14bf /internal/engine/exclude_test.go
parent1f1a303c617057f149b4f0d748ee0a195484642c (diff)
downloadkrino-0b155e8df3205aebf129091b517f4116665a5adc.tar.gz
krino-0b155e8df3205aebf129091b517f4116665a5adc.zip
main excludes checked with the defaults' case and fold; Latin-1 decoding memory; hardlink election documented
Diffstat (limited to 'internal/engine/exclude_test.go')
-rw-r--r--internal/engine/exclude_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/engine/exclude_test.go b/internal/engine/exclude_test.go
index cd1cc4b..8308a82 100644
--- a/internal/engine/exclude_test.go
+++ b/internal/engine/exclude_test.go
@@ -261,6 +261,13 @@ func TestLoadChecksMainExcludesWithoutDirectories(t *testing.T) {
if _, errs := Load(main); len(errs) == 0 {
t.Error("a broken krino.conf exclude was not reported")
}
+ // Checked with the defaults' case and fold, as a directory would compile
+ // them (triage 28g): a keyword of a lone combining mark is empty only
+ // when folded.
+ main = writeConfig(t, h, "(include)\n(defaults (fold no))\n(exclude (content \"\u0301\"))\n", nil)
+ if _, errs := Load(main); len(errs) != 0 {
+ t.Errorf("checked with fold on, though the defaults say no: %v", errs)
+ }
}
// TestNoTextFormatIsNoMatch: a file whose format has no text cannot contain