Skip to content

Commit f168a29

Browse files
committed
test(plugin): migrate ConverterTest to FunSpec
1 parent 2d8a5a0 commit f168a29

File tree

2 files changed

+216
-209
lines changed

2 files changed

+216
-209
lines changed

plugin/src/shared/sc/plugin2021/Board.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ class Board(
1616

1717
constructor(other: Board) : this(Array(other.gameField.size) { other.gameField[it].clone() })
1818

19+
constructor(vararg fields: Field) : this() {
20+
fields.forEach {
21+
set(it.coordinates, it.content)
22+
}
23+
}
24+
1925
/** Prüft, ob alle Felder leer sind. */
2026
fun isEmpty() =
2127
gameField.all { row ->

0 commit comments

Comments
 (0)