mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
feat(multiplayer): verify ranked profile delivery
This commit is contained in:
Regular → Executable
@@ -54,3 +54,10 @@ func TestTierPolicyRejectsUnorderedOrUnboundedConfiguration(t *testing.T) {
|
||||
t.Fatal("negative ranked games accepted")
|
||||
}
|
||||
}
|
||||
|
||||
func TestDefaultTierPolicyUsesBackendLaunchBands(t *testing.T) {
|
||||
tier, err := RankedTier(RankedProfile{Rating: Rating{Value: 1600}, RankedGames: 10}, DefaultTierPolicy())
|
||||
if err != nil || tier != RankTierGold {
|
||||
t.Fatalf("default tier = (%q, %v), want GOLD", tier, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user