AdventOfCode2023/tests/day2/Puzzle1Test.scala
2023-12-02 11:39:19 +01:00

16 lines
307 B
Scala

package day2
import org.scalatest.funsuite.AnyFunSuite
import scala.collection.immutable.HashMap
class Puzzle1Test extends AnyFunSuite {
test("Puzzle1.solve") {
assert(Puzzle1.solve("tests_res/day2/input1.txt", HashMap(
"red" -> 12,
"green" -> 13,
"blue" -> 14
)) == 8)
}
}