From 813ef5907819226e62a8255eea10d7fffc0df843 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Fri, 15 May 2020 00:29:30 +0200 Subject: Clean up --- .../luxons/sevenwonders/engine/effects/SpecialAbilityActivationTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-engine/src/test/kotlin/org/luxons') diff --git a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/effects/SpecialAbilityActivationTest.kt b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/effects/SpecialAbilityActivationTest.kt index 16fbeae6..5a996369 100644 --- a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/effects/SpecialAbilityActivationTest.kt +++ b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/effects/SpecialAbilityActivationTest.kt @@ -49,7 +49,7 @@ class SpecialAbilityActivationTest { player.board.copiedGuild = guildCard - val directPointsFromGuildCard = guildCard.effects.stream().mapToInt { e -> e.computePoints(player) }.sum() + val directPointsFromGuildCard = guildCard.effects.sumBy { it.computePoints(player) } assertEquals(directPointsFromGuildCard, effect.computePoints(player)) } -- cgit