diff options
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) - } - } } } |
