2024-12-11 21:12:25 +01:00
|
|
|
(defpackage :aoc/2024/12/tests
|
|
|
|
(:use :cl :aoc :aoc/tests :aoc/2024/tests :parachute :aoc/2024/12))
|
|
|
|
|
|
|
|
(in-package :aoc/2024/12/tests)
|
|
|
|
|
|
|
|
(define-test suite-2024-12
|
2024-12-12 09:04:24 +01:00
|
|
|
;
|
|
|
|
;:parent suite-2024
|
|
|
|
;)
|
|
|
|
)
|
2024-12-11 21:12:25 +01:00
|
|
|
|
2024-12-12 09:04:24 +01:00
|
|
|
(define-test test-find-same-neighbors
|
|
|
|
:parent suite-2024-12
|
|
|
|
(is equal '((1 . 0) (0 . 1)) (find-same-neighbors sample-data 0 0))
|
|
|
|
|
|
|
|
(is equal '((2 . 2) (3 . 1) (4 . 2)) (find-same-neighbors sample-data 3 2))
|
|
|
|
)
|
2024-12-11 21:12:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
(define-test test-bar
|
2024-12-12 09:04:24 +01:00
|
|
|
:parent suite-2024-12)
|
2024-12-11 21:12:25 +01:00
|
|
|
|
|
|
|
(define-test+run test-part1
|
2024-12-12 09:04:24 +01:00
|
|
|
:parent suite-2024-12
|
|
|
|
(is equal nil (part1 sample-data)))
|
2024-12-11 21:12:25 +01:00
|
|
|
|
|
|
|
(define-test+run test-part2
|
2024-12-12 09:04:24 +01:00
|
|
|
:parent suite-2024-12
|
|
|
|
(is equal nil (part2 sample-data)))
|