pattern spec

This commit is contained in:
msyds committed 2026-09-17 07:30:28 -06:00
1 parent da4f03d2ac
commit 6f09eeeded
2 files changed
+65 -5

No files matched your search

+2 -2
View File
@@ -18,11 +18,11 @@
(sut/nearest ['x #{0 1 2}]
[#{0} #{0 1} #{0 3}]))))
(t/deftest parse-pattern-test
(t/deftest pattern-spec
(t/testing "list"
(t/are [l e t x] (= [l e t]
((juxt :leading :ellipsis :trailing)
(sut/parse-pattern x)))
(s/conform ::pattern x)))
nil nil nil '()
'(a) nil nil '(a)
'(a b) nil nil '(a b)