extends TestCase func test_four_players_have_four_colours() -> void: var style := GlowStyle.new() var colours := {} for player in 4: colours[style.player_color(player)] = true check_eq(colours.size(), 4, "four players, four colours") check_eq(style.player_color(-1), style.player_color(0), "a player not in the world yet looks like the first") func test_it_has_every_colour_the_warm_style_has() -> void: var names := GlowStyle.new().palette.keys() var warm := WarmStyle.new().palette.keys() names.sort() warm.sort() check_eq(names, warm, "the same colours by name")