File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
main/kotlin/dev/mtib/aoc/day
test/kotlin/dev/mtib/aoc/aoc24/days Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,9 @@ open class AocDay(
187
187
if (releaseTime.isAfter(ZonedDateTime .now())) {
188
188
return
189
189
}
190
+ if (! System .getenv(" CI" ).isNullOrBlank()) {
191
+ return
192
+ }
190
193
val token = System .getenv(" SESSION" )
191
194
if (token.isNullOrBlank()) {
192
195
return
Original file line number Diff line number Diff line change 1
1
package dev.mtib.aoc.aoc24.days
2
2
3
3
import io.kotest.core.spec.style.FunSpec
4
+ import io.kotest.matchers.shouldBe
4
5
5
6
class Day7Test : FunSpec ({
6
7
val snippet0 = """
@@ -22,6 +23,12 @@ class Day7Test : FunSpec({
22
23
// Ignore allowed exception
23
24
}
24
25
}
26
+
27
+ test("example") {
28
+ Day7 .withInput(snippet0) {
29
+ Day7 .part1() shouldBe 3749 .toBigInteger()
30
+ }
31
+ }
25
32
}
26
33
context("part2") {
27
34
test("doesn't throw") {
@@ -31,5 +38,10 @@ class Day7Test : FunSpec({
31
38
// Ignore allowed exception
32
39
}
33
40
}
41
+ test("example") {
42
+ Day7 .withInput(snippet0) {
43
+ Day7 .part2() shouldBe 11387 .toBigInteger()
44
+ }
45
+ }
34
46
}
35
47
})
You can’t perform that action at this time.
0 commit comments