Skip to content

Commit fd894e5

Browse files
committed
fix: adjust test syntax to updates
1 parent f5a7ed2 commit fd894e5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plugin/src/test/kotlin/sc/plugin2024/BoardTest.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ class BoardTest: FunSpec({
5959
}
6060

6161
test("board bounds") {
62-
Board(listOf(Segment.empty())).rectangleSize shouldBe Coordinates(5, 5)
63-
Board(listOf(Segment.empty(CubeCoordinates(4,0)))).rectangleSize shouldBe Coordinates(7, 5)
64-
Board(listOf(Segment.empty(), Segment.empty(CubeCoordinates(4,4)))).rectangleSize shouldBe Coordinates(11, 9)
62+
listOf(Segment.empty()).rectangleSize shouldBe Coordinates(5, 5)
63+
listOf(Segment.empty(CubeCoordinates(4,0))).rectangleSize shouldBe Coordinates(5, 5)
64+
listOf(Segment.empty(), Segment.empty(CubeCoordinates(4,4))).rectangleSize shouldBe Coordinates(11, 9)
6565
}
6666

6767
val board = Board()
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package sc.server
22

3-
import ch.qos.logback.classic.util.ContextInitializer
3+
import ch.qos.logback.classic.ClassicConstants
44
import java.io.File
55

66
fun logbackFromPWD() {
77
System.setProperty("file.encoding", "UTF-8")
8-
var config = System.getProperty(ContextInitializer.CONFIG_FILE_PROPERTY)
8+
var config = System.getProperty(ClassicConstants.CONFIG_FILE_PROPERTY)
99
if (config == null) {
1010
config = System.getProperty("user.dir") + File.separator + "logback.xml"
11-
System.setProperty(ContextInitializer.CONFIG_FILE_PROPERTY, config)
11+
System.setProperty(ClassicConstants.CONFIG_FILE_PROPERTY, config)
1212
}
1313
//println("Loading logback config from $config")
1414
}

0 commit comments

Comments
 (0)