diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 00:29:30 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 01:20:15 +0200 |
commit | 813ef5907819226e62a8255eea10d7fffc0df843 (patch) | |
tree | ebbc1f93e128c75168806403cdb28fabe43369c1 /sw-engine/src/test/kotlin/org | |
parent | Upgrade to krossbow 0.20.1 (migrate to flows) (diff) | |
download | seven-wonders-813ef5907819226e62a8255eea10d7fffc0df843.tar.gz seven-wonders-813ef5907819226e62a8255eea10d7fffc0df843.tar.bz2 seven-wonders-813ef5907819226e62a8255eea10d7fffc0df843.zip |
Clean up
Diffstat (limited to 'sw-engine/src/test/kotlin/org')
-rw-r--r-- | sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/effects/SpecialAbilityActivationTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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)) } |