This commit is contained in:
msyds committed 2026-09-22 07:17:30 -06:00
1 parent 7282e44c5a
commit 90526500c9
4 files changed
+77 -15

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
(ns expand-test
(:require [expand :as sut]
[clojure.test :as t]))
(t/deftest nearest-test
(t/is (= '#{#{a b}}
(sut/nearest '#{a b c}
'[#{a} #{a b} #{a d}]))
"unambiguous")
(t/is (= '#{#{a b} #{a c}}
(sut/nearest
'#{a b c} '[#{a} #{a b} #{a c}]))
"ambiguous")
(t/is (= #{}
(sut/nearest
'#{a b c} '[#{d} #{d e} #{f}]))
"undefined"))