advent-of-code-2023

My solutions to AoC 2023
git clone git://git.entf.net/advent-of-code-2023
Log | Files | Refs

day-9.lisp (279B)


      1 (defpackage #:aoc-test/day-9
      2   (:use #:cl #:lisp-unit2))
      3 (in-package #:aoc-test/day-9)
      4 
      5 (define-test test-day-9
      6     ()
      7   (multiple-value-bind (task-1 task-2)
      8       (aoc:run-day 9 "0 3 6 9 12 15
      9 1 3 6 10 15 21
     10 10 13 16 21 30 45")
     11     (assert= 114 task-1)
     12     (assert= 2 task-2)))