package engine

import "testing"

// TestVariantLanguage checks the variant -> bot-language mapping that routes a game's out-of-app
// push by the game itself (English -> en, the Russian variants -> ru), rather than the recipient's
// last-login bot.
func TestVariantLanguage(t *testing.T) {
	cases := map[Variant]string{
		VariantEnglish:         "en",
		VariantRussianScrabble: "ru",
		VariantErudit:          "ru",
	}
	for v, want := range cases {
		if got := v.Language(); got != want {
			t.Errorf("%s.Language() = %q, want %q", v, got, want)
		}
	}
}
