summaryrefslogtreecommitdiff
path: root/sw-engine/src/test/kotlin/org
diff options
context:
space:
mode:
Diffstat (limited to 'sw-engine/src/test/kotlin/org')
-rw-r--r--sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt2
-rw-r--r--sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/test/TestUtils.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt
index 5368fbc0..62cc2907 100644
--- a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt
+++ b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt
@@ -129,5 +129,5 @@ class GameTest {
data class MoveExpectation(val playerIndex: Int, val moveToSend: PlayerMove, val expectedPlayedMove: PlayedMove)
private fun HandCard.toPlayedCard(): TableCard =
- TableCard(name, color, requirements, chainParent, chainChildren, image, back, true)
+ TableCard(name, color, requirements, chainParents, chainChildren, image, back, true)
}
diff --git a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/test/TestUtils.kt b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/test/TestUtils.kt
index 7a13eccd..4cad3f66 100644
--- a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/test/TestUtils.kt
+++ b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/test/TestUtils.kt
@@ -98,7 +98,7 @@ internal fun testCard(
effect: Effect? = null,
): Card {
val effects = if (effect == null) emptyList() else listOf(effect)
- return Card(name, color, requirements, effects, null, emptyList(), "path/to/card/image", CardBack("image-III"))
+ return Card(name, color, requirements, effects, emptyList(), emptyList(), "path/to/card/image", CardBack("image-III"))
}
internal fun addCards(board: Board, nbCardsOfColor: Int, nbOtherCards: Int, color: Color) {
bgstack15