AdventOfCode2023/tests/day2/Puzzle1Test.scala

16 lines
307 B
Scala
Raw Permalink Normal View History

2023-12-02 10:39:19 +00:00
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)
}
}