8881214213
Mechanical, behaviour-preserving removal of Stage N / TODO-N / phase (RN) references from comments, doc-comments, service READMEs, the current-state docs (ARCHITECTURE, FUNCTIONAL+_ru, TESTING, UI_DESIGN), config-file comments, and the .fbs/.proto schema comments. PLAN.md / PRERELEASE.md / CLAUDE.md keep the stage history. - Rename the only stage-named identifiers: registerStage8 -> registerSocialOps, registerStage11 -> registerLinkOps (gateway transcode). - Split stage6_test.go: TestEmailLoginFlow -> email_test.go, TestGuestAutoMatchLeavesNoStats (+ provisionGuest) -> account_test.go. - Regenerated proto bindings (push.pb.go, telegram_grpc.pb.go) from the de-staged .proto comments; FB Go/TS bindings unchanged (flatc strips schema comments). go build/vet/gofmt clean across modules; integration typecheck and pnpm check green.
20 lines
557 B
Go
20 lines
557 B
Go
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)
|
|
}
|
|
}
|
|
}
|