From bc5a3d643d77acc3d37fba01cfbd796452251d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 2 Aug 2021 19:08:09 +0200 Subject: Add a test case --- locales_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locales_test.go b/locales_test.go index 909a58d..44a029f 100644 --- a/locales_test.go +++ b/locales_test.go @@ -56,6 +56,8 @@ func TestGetTranslator(t *testing.T) { c.Run("Sample", func(c *qt.C) { assertSame(c, GetTranslator("en"), en.New()) assertSame(c, GetTranslator("nn"), nn.New()) + // find . -name "*.go" | xargs grep "New() locales.Translator" | wc -l in locales. + c.Assert(translatorFuncs, qt.HasLen, 764) }) c.Run("Para", func(c *qt.C) { -- cgit v1.2.3