Assert team sums are Floats rather than seed them with 0.0
Array#sum's signature starts from Integer 0, so a block sum reads as
Float | Integer; the assertion keeps the sums as they were written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014U2t8JuR681EA8GQD9z5mD
change
commit a839acc927b4a5dd677f10114ebde1f5f46d7772
author Claude <noreply@anthropic.com>
date
parent bf1edc2a
diff --git a/lib/open_skill/game.rb b/lib/open_skill/game.rb
index 4304eba..304c8e2 100644
--- a/lib/open_skill/game.rb
+++ b/lib/open_skill/game.rb
@@ -45,8 +45,8 @@ module OpenSkill
     def team_ratings
       teams.zip(rankings).map { |team, rank|
         TeamRating.new(
-          mu: team.sum(0.0) { |p| p.mu },
-          sigma_sq: team.sum(0.0) { |p| p.sigma**2 },
+          mu: team.sum { |p| p.mu }, #: Float
+          sigma_sq: team.sum { |p| p.sigma**2 }, #: Float
           team: team,
           rank: rank, #: Integer
         )