Skip to content

Commit 8082de7

Browse files
Colin KahnColin Kahn
authored andcommitted
fix unreachable case when :kaocha.spec.test.check/syms is a collection
1 parent 77334ed commit 8082de7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
respected on the initial load, but not after watch reloaded the configuration.
1111
- Notifier now reports errors in your notification command instead of silently
1212
failing.
13+
- Fixed `java.lang.IllegalArgumentException: No matching clause: []` exception
14+
when `:kaocha.spec.test.check/syms` is a collection.
1315

1416
## Changed
1517

src/kaocha/type/spec/test/check.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
(condp = syms
3333
:all-fdefs (all-fdef-tests check)
3434
:other-fdefs nil ;; TODO: this requires orchestration from the plugin
35-
:else (type.fdef/load-testables check syms))))
35+
;; else
36+
(type.fdef/load-testables check syms))))
3637

3738
(defn checks [{checks :kaocha.spec.test.check/checks :as testable}]
3839
(let [checks (or checks [{}])]

0 commit comments

Comments
 (0)