From 357ed0ec071a5a6c7f7cb038b558b50b99685f1c Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Tue, 13 Dec 2022 01:14:57 +0100 Subject: Solve in LISP --- AoC2022/12/solver.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'AoC2022/12/solver.el') diff --git a/AoC2022/12/solver.el b/AoC2022/12/solver.el index bb5749a..580cc1d 100644 --- a/AoC2022/12/solver.el +++ b/AoC2022/12/solver.el @@ -37,7 +37,8 @@ (ert-deftest test-directions () (should (equal (solver-directions 6 (land--create :width 5 :height 5)) '(7 11 5 1))) - (should (equal (solver-directions 0 (land--create :width 5 :height 5)) '(1 5)))) + (should (equal (solver-directions 0 (land--create :width 5 :height 5)) '(1 5))) + (should (equal (solver-directions 1 (land--create :width 8 :height 5)) '(2 9 0)))) (defun solver-land (data) (cl-map 'string (lambda (chr) -- cgit v1.2.3