advent-of-code-2023

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

day-12.lisp (294B)


      1 (defpackage #:aoc-test/day-12
      2   (:use #:cl #:lisp-unit2 #:aoc/day-12))
      3 (in-package #:aoc-test/day-12)
      4 
      5 (define-test test-day-12
      6     ()
      7   (assert= 1 (possible-arrangements (coerce "???.###" 'list) (list 1 1 3)))
      8   (assert= 10 (possible-arrangements (coerce "?###????????" 'list) (list 3 2 1))))