Skip to content

Commit c413590

Browse files
aartakamasatake
andcommitted
Units.b(Clojure): add test cases for extracting methods
Co-authored-by: Masatake YAMATO <[email protected]>
1 parent 36ae748 commit c413590

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
About methodId kind, see #4126.
2+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--sort=no
2+
--fields=+KzZ
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
multimethod.test input.clj /^(ns multimethod.test)$/;" kind:namespace
2+
test input.clj /^(defmulti test$/;" kind:multi scope:namespace:multimethod.test
3+
documented-multimethod input.clj /^(defmulti documented-multimethod "Documentation"$/;" kind:multi scope:namespace:multimethod.test
4+
test input.clj /^(defmethod test nil$/;" kind:method scope:namespace:multimethod.test
5+
test input.clj /^(defmethod test :test$/;" kind:method scope:namespace:multimethod.test
6+
test input.clj /^(defmethod test :test2 named-method$/;" kind:method scope:namespace:multimethod.test
7+
named-method input.clj /^(defmethod test :test2 named-method$/;" kind:methodId method:test scope:namespace:multimethod.test
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
(ns multimethod.test)
2+
3+
(defmulti test
4+
(fn [type] type))
5+
6+
(defmulti documented-multimethod "Documentation"
7+
(fn [type] type))
8+
9+
(defmethod test nil
10+
[& _]
11+
nil)
12+
13+
(defmethod test :test
14+
[& _]
15+
nil)
16+
17+
(defmethod test :test2 named-method
18+
[& _]
19+
nil)

0 commit comments

Comments
 (0)