Skip to content

Commit 6b4ca90

Browse files
committed
Use java 8 compatible file reading
1 parent b2c829d commit 6b4ca90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/kotlin/Day4Test.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import kotlin.test.assertEquals
88

99
class Day4Test {
1010

11-
val example = Files.readString(Paths.get("src/main/resources/day4/day4_example.txt"))
12-
val input = Files.readString(Paths.get("src/main/resources/day4/day4.txt"))
11+
val example = String(Files.readAllBytes(Paths.get("src/main/resources/day4/day4_example.txt")))
12+
val input = String(Files.readAllBytes(Paths.get("src/main/resources/day4/day4.txt")))
1313

1414
@Nested
1515
inner class Part1 {

0 commit comments

Comments
 (0)