From 295347a45546cf0e06cf8ea6959710440f2a9d89 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 12:27:14 +0200 Subject: [PATCH] Test that --no-shipped-data alone reports the library's no-data note as it is --- cmd/fejkdata/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fejkdata/main_test.go b/cmd/fejkdata/main_test.go index c46de2e..de28748 100644 --- a/cmd/fejkdata/main_test.go +++ b/cmd/fejkdata/main_test.go @@ -517,7 +517,7 @@ func TestRunNoShippedData(t *testing.T) { if code, out, errb := runOut("{digits(3)}", "--no-shipped-data"); code != 0 || len(out) != 3 { t.Errorf("--no-shipped-data alone = %d, %q, %q, want a template reading no data rendered", code, out, errb) } - if code, _, errb := runOut("{/sv_SE.person}", "--no-shipped-data"); code != 2 || !strings.Contains(errb, "no data is loaded: --no-shipped-data and no --data-path") { + if code, _, errb := runOut("{/sv_SE.person}", "--no-shipped-data"); code != 2 || !strings.HasSuffix(errb, "no data is loaded\ntry 'fejkdata --help'\n") { t.Errorf("--no-shipped-data alone = %d, %q, want a reference to nothing refused", code, errb) } }