diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-03 23:39:49 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-03 23:39:49 +0200 |
| commit | 14c4540d3f06299bf65d74ea864ae7c6c4c33f72 (patch) | |
| tree | 396bbb80e9f342e6f8dc1a15faf56c93d3a0ecd0 /internal/i18n/vocab_test.go | |
| parent | da1818a73de736dffd1580137352c32bea81be8c (diff) | |
| download | lectio-14c4540d3f06299bf65d74ea864ae7c6c4c33f72.tar.gz lectio-14c4540d3f06299bf65d74ea864ae7c6c4c33f72.zip | |
i18n: drop the colour word table, it has no consumer
Diffstat (limited to 'internal/i18n/vocab_test.go')
| -rw-r--r-- | internal/i18n/vocab_test.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/i18n/vocab_test.go b/internal/i18n/vocab_test.go index 73115bb..d25533a 100644 --- a/internal/i18n/vocab_test.go +++ b/internal/i18n/vocab_test.go @@ -6,7 +6,7 @@ import ( "github.com/lukaszkasprzak/lectio/internal/calendar" ) -// Every rank and colour the calendar can emit must have a word in every shipped +// Every rank the calendar can emit must have a word in every shipped // language. This is the guard against adding a constant later and silently // rendering a raw key like "class-2" in the UI. func TestVocabularyCoversEveryConstant(t *testing.T) { @@ -16,10 +16,6 @@ func TestVocabularyCoversEveryConstant(t *testing.T) { calendar.RankClass1, calendar.RankClass2, calendar.RankClass3, calendar.RankClass4, calendar.RankCommemoration, } - colours := []calendar.Colour{ - calendar.White, calendar.Red, calendar.Green, - calendar.Violet, calendar.Rose, calendar.Black, - } for _, lang := range []string{"en", "pl"} { ui := Get(lang) for _, r := range ranks { @@ -27,11 +23,6 @@ func TestVocabularyCoversEveryConstant(t *testing.T) { t.Errorf("%s: no rank word for %q", lang, r) } } - for _, c := range colours { - if ui.Colour[string(c)] == "" { - t.Errorf("%s: no colour word for %q", lang, c) - } - } } } |
