Blob
1 (defpackage #:aoc-test/day-102 (:use #:cl #:lisp-unit2)3 (:import-from #:aoc/day-10))4 (in-package #:aoc-test/day-10)6 (define-test test-day-107 ()8 (assert= 2 (aoc:run-day 10 "...0...9 ...1...10 ...2...11 654345612 7.....713 8.....814 9.....9"))15 (assert= 4 (aoc:run-day 10 "..90..916 ...1.9817 ...2..718 654345619 765.98720 876....21 987...."))22 (assert= 3 (aoc:run-day 10 "10..9..23 2...8..24 3...7..25 456765426 ...8..327 ...9..228 .....01"))29 (assert= 36 (aoc:run-day 10 "8901012330 7812187431 8743096532 9654987433 4567890334 3201901235 0132980136 10456732"))37 (assert= 3 (nth-value 1 (aoc:run-day 10 ".....0.38 ..4321.39 ..5..2.40 ..6543.41 ..7..4.42 ..8765.43 ..9....")))44 (assert= 13 (nth-value 1 (aoc:run-day 10 "..90..945 ...1.9846 ...2..747 654345648 765.98749 876....50 987....")))51 (assert= 227 (nth-value 1 (aoc:run-day 10 "01234552 12345653 23456754 34567855 4.678956 56789.")))57 (assert= 81 (nth-value 1 (aoc:run-day 10 "8901012358 7812187459 8743096560 9654987461 4567890362 3201901263 0132980164 10456732"))))
