aboutsummaryrefslogtreecommitdiff
path: root/internal/cli/cli_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cli/cli_test.go')
-rw-r--r--internal/cli/cli_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/cli/cli_test.go b/internal/cli/cli_test.go
index 47d8f55..374d723 100644
--- a/internal/cli/cli_test.go
+++ b/internal/cli/cli_test.go
@@ -391,8 +391,11 @@ func TestCitation(t *testing.T) {
if code := Run([]string{"--citation", "2026-07-22"}, nil, &out, &errb); code != 0 {
t.Fatalf("citation code=%d stderr=%q", code, errb.String())
}
- if s := strings.TrimSpace(out.String()); !strings.Contains(s, "J 20") {
- t.Errorf("citation = %q, want a gospel ref containing 'J 20'", s)
+ // Default config resolves to the English dialect (sigla_style auto +
+ // ui_language en), so the Polish source "J 20, 1. 11-18" is rendered as the
+ // English sigla "Jn 20:1,11-18".
+ if s := strings.TrimSpace(out.String()); !strings.Contains(s, "Jn 20:") {
+ t.Errorf("citation = %q, want English-dialect gospel ref 'Jn 20:...'", s)
}
}
@@ -415,7 +418,7 @@ func TestWeek(t *testing.T) {
if len(lines) != 7 {
t.Fatalf("week printed %d lines, want 7:\n%s", len(lines), out.String())
}
- if !strings.HasPrefix(lines[0], "2026-07-22") || !strings.Contains(lines[0], "J 20") {
+ if !strings.HasPrefix(lines[0], "2026-07-22") || !strings.Contains(lines[0], "Jn 20:") {
t.Errorf("week[0] = %q", lines[0])
}
}