Files
AmirGhost11 ff300a5e84
Build / test-and-build (scribblers-linux-x64, ubuntu-latest) (push) Has been cancelled
Build / test-and-build (scribblers-macos-x64, macos-latest) (push) Has been cancelled
Build / test-and-build (scribblers-x64.exe, windows-latest) (push) Has been cancelled
feat: Initialized Project
2026-05-09 09:36:38 +03:30

20 lines
464 B
Go

package translations
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
func Test_noObsoleteKeys(t *testing.T) {
for language, translationMap := range translationRegistry {
t.Run(fmt.Sprintf("obsolete_keys_check_%s", language), func(t *testing.T) {
for key := range translationMap.Dictionary {
_, englishContainsKey := DefaultTranslation.Dictionary[key]
assert.True(t, englishContainsKey, "key %s is obsolete", key)
}
})
}
}