import kotlin.test.Test import kotlin.test.assertEquals class Solution02Test { @Test fun testGetSumOfCorrectGameIDs() { val games = Solution02.readGames("inputs/day-02/test.txt") val res = Solution02.getSumOfCorrectGameIDs(games, CubeCount(12, 13, 14)) assertEquals(8, res) } @Test fun testGetPowerSum() { val games = Solution02.readGames("inputs/day-02/test.txt") val res = Solution02.getSumOfPowers(games) assertEquals(2286, res) } @Test fun solvePart1() { val games = Solution02.readGames("inputs/day-02/input.txt") val res = Solution02.getSumOfCorrectGameIDs(games, CubeCount(12, 13, 14)) println(res) } @Test fun solvePart2() { val games = Solution02.readGames("inputs/day-02/input.txt") val res = Solution02.getSumOfPowers(games) println(res) } }