-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And migrate affected classes to the newer `Challenge` format.
- Loading branch information
Showing
9 changed files
with
44 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
package com.fwdekker.aoc.y2023 | ||
|
||
import com.fwdekker.aoc.Day | ||
import com.fwdekker.aoc.Day.Companion.resource | ||
import com.fwdekker.aoc.DayTest | ||
import com.fwdekker.std.ChallengeTest | ||
import com.fwdekker.std.case | ||
import io.kotest.core.annotation.Tags | ||
|
||
|
||
/** | ||
* Tests for [Day23]. | ||
*/ | ||
object Day23Test : DayTest( | ||
@Tags("2023") | ||
object Day23Test : ChallengeTest( | ||
::Day23, | ||
listOf( | ||
Triple(resource(2023, 23, sample = 1), Day::part1, 94), | ||
Triple(resource(2023, 23, sample = 1), Day::part2, 154), | ||
Triple(resource(2023, 23), Day::part1, 2318), | ||
Triple(resource(2023, 23), Day::part2, 6426), | ||
case(part = 1, sample = 1) to 94, | ||
case(part = 2, sample = 1) to 154, | ||
case(part = 1) to 2318, | ||
case(part = 2) to 6426, | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package com.fwdekker.aoc.y2024 | ||
|
||
import com.fwdekker.aoc.Day | ||
import com.fwdekker.aoc.DayTest | ||
import io.kotest.core.annotation.Ignored | ||
import com.fwdekker.std.ChallengeTest | ||
import com.fwdekker.std.case | ||
import io.kotest.core.annotation.Tags | ||
import java.math.BigInteger | ||
|
||
|
||
/** | ||
* Tests for [Day13]. | ||
*/ | ||
object Day13Test : DayTest( | ||
@Tags("2024") | ||
object Day13Test : ChallengeTest( | ||
::Day13, | ||
listOf( | ||
Triple(Day.resource(2024, 13, sample = 1), Day::part1, BigInteger("480")), | ||
Triple(Day.resource(2024, 13), Day::part1, BigInteger("29517")), | ||
Triple(Day.resource(2024, 13), Day::part2, BigInteger("103570327981381")), | ||
case(part = 1, sample = 1) to BigInteger("480"), | ||
case(part = 1) to BigInteger("29517"), | ||
case(part = 2) to BigInteger("103570327981381"), | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package com.fwdekker.aoc.y2024 | ||
|
||
import com.fwdekker.aoc.Day | ||
import com.fwdekker.aoc.DayTest | ||
import com.fwdekker.std.ChallengeTest | ||
import com.fwdekker.std.case | ||
import io.kotest.core.annotation.Tags | ||
|
||
|
||
/** | ||
* Tests for [Day2]. | ||
*/ | ||
object Day2Test : DayTest( | ||
@Tags("2024") | ||
object Day2Test : ChallengeTest( | ||
::Day2, | ||
listOf( | ||
Triple(Day.resource(2024, 2, sample = 1), Day::part1, 2), | ||
Triple(Day.resource(2024, 2, sample = 1), Day::part2, 4), | ||
Triple(Day.resource(2024, 2), Day::part1, 334), | ||
Triple(Day.resource(2024, 2), Day::part2, 400), | ||
case(part = 1, sample = 1) to 2, | ||
case(part = 2, sample = 1) to 4, | ||
case(part = 1) to 334, | ||
case(part = 2) to 400, | ||
) | ||
) |
Submodule euler
updated
from 5d42a5 to ddde77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters