From 722a3a6089647b9bf002734c9140db2bbc7e3fcb Mon Sep 17 00:00:00 2001 From: XeroOl Date: Sat, 12 Jul 2025 16:11:51 -0500 Subject: [PATCH] make selflint now covers tests --- Makefile | 1 + test/lint.fnl | 2 +- test/settings.fnl | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2183960..ee12eb2 100644 --- a/Makefile +++ b/Makefile @@ -64,6 +64,7 @@ deps: selflint: $(FENNEL) $(FENNELFLAGS) src/fennel-ls.fnl --lint $(SRC) + $(FENNEL) $(FENNELFLAGS) src/fennel-ls.fnl --lint $(shell find test -name "*.fnl") count: cloc $(shell find src -name "*.fnl" | grep -v "generated") diff --git a/test/lint.fnl b/test/lint.fnl index a389b07..ad98d9a 100644 --- a/test/lint.fnl +++ b/test/lint.fnl @@ -240,7 +240,7 @@ ;; nested pinning (assert-ok "(let [x 99] (match [{:x 32}] - [{: x}] (print x)))" [] [{}]) + [{: x}] (print x)))") ;; values pattern (assert-ok "(let [x 99] (match 49 diff --git a/test/settings.fnl b/test/settings.fnl index d40bfd7..1225161 100644 --- a/test/settings.fnl +++ b/test/settings.fnl @@ -1,6 +1,5 @@ (local faith (require :faith)) (local {: create-client} (require :test.utils)) -(local fennel (require :fennel)) (fn test-path [] (let [{: client : uri : cursor :locations [location]}