Skip to content

Commit 1ba34be

Browse files
committed
Expand ns-ast-test
1 parent 9d88da9 commit 1ba34be

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(ns clashing-defprotocol-method-name
2+
"Exercises that var shadowing (in this case: for `update`) doesn't cause any issue.")
3+
4+
(defprotocol Repository
5+
"Store and retrieve."
6+
:extend-via-metadata true
7+
(add [repository insert-params]
8+
"Add to the repository.")
9+
(update [repository update-params]
10+
"Update."))

test/refactor_nrepl/analyzer_test.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[refactor-nrepl.analyzer :as sut]))
66

77
(deftest ns-ast-test
8-
(doseq [f ["core_async_usage.clj"]
8+
(doseq [f ["core_async_usage.clj"
9+
"clashing_defprotocol_method_name.clj"]
910
:let [c (-> f io/resource slurp)]]
1011
(is (some? (sut/ns-ast c)))))

0 commit comments

Comments
 (0)