day-13.lisp (649B)
1 (defpackage #:aoc-test/day-13 2 (:use #:cl #:lisp-unit2) 3 (:import-from #:aoc/day-13)) 4 (in-package #:aoc-test/day-13) 5 6 (define-test test-day-13 7 () 8 (assert= 280 (aoc:run-day 13 "Button A: X+94, Y+34 9 Button B: X+22, Y+67 10 Prize: X=8400, Y=5400")) 11 (assert= 0 (aoc:run-day 13 "Button A: X+26, Y+66 12 Button B: X+67, Y+21 13 Prize: X=12748, Y=12176")) 14 (assert= 480 (aoc:run-day 13 "Button A: X+94, Y+34 15 Button B: X+22, Y+67 16 Prize: X=8400, Y=5400 17 18 Button A: X+26, Y+66 19 Button B: X+67, Y+21 20 Prize: X=12748, Y=12176 21 22 Button A: X+17, Y+86 23 Button B: X+84, Y+37 24 Prize: X=7870, Y=6450 25 26 Button A: X+69, Y+23 27 Button B: X+27, Y+71 28 Prize: X=18641, Y=10279")))