advent-of-code-2024

My solutions to AoC 2024
Log | Files | Refs

day-3.lisp (374B)


      1 (defpackage #:aoc-test/day-3
      2   (:use #:cl #:lisp-unit2)
      3   (:import-from aoc/day-3))
      4 (in-package #:aoc-test/day-3)
      5 
      6 (define-test test-day-3
      7     ()
      8   (assert= 161 (aoc:run-day 3 "xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))"))
      9   (assert= 48 (nth-value 1 (aoc:run-day 3 "xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5))"))))