import java.io.File import kotlin.test.Test import kotlin.test.assertEquals class Solution03Test { @Test fun testGetSumOfParts() { val text = ResourceReader().readFile("day-03/test.txt") val instance = Solution03(text) val res = instance.getSumOfParts() assertEquals(4361, res) } @Test fun solvePart1() { val text = ResourceReader().readFile("day-03/input.txt") val instance = Solution03(text) val res = instance.getSumOfParts() println(res) } @Test fun testGetGearRatio() { val text = ResourceReader().readFile("day-03/test.txt") val instance = Solution03(text) val res = instance.getGearRatioSum() assertEquals(467835, res) } @Test fun solvePart2() { val text = ResourceReader().readFile("day-03/input.txt") val instance = Solution03(text) val res = instance.getGearRatioSum() println(res) } }