Skip to content

Commit

Permalink
Units/parser-clojure.r/clojure-methods.b: Add for method testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartaka committed Nov 21, 2024
1 parent a6234d1 commit 0a77b74
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Units/parser-clojure.r/clojure-methods.b/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
documented-multimethod input.clj /^(defmulti documented-multimethod "Documentation"$/;" M multimethod.test
named-method input.clj /^(defmethod test :test2 named-method$/;" m multimethod.test
test input.clj /^(defmulti test$/;" M multimethod.test
test input.clj /^(defmethod test nil$/;" m multimethod.test
test input.clj /^(defmethod test :test$/;" m multimethod.test
test input.clj /^(defmethod test :test2 named-method$/;" m multimethod.test
19 changes: 19 additions & 0 deletions Units/parser-clojure.r/clojure-methods.b/input.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
(ns multimethod.test)

(defmulti test
(fn [type] type))

(defmulti documented-multimethod "Documentation"
(fn [type] type))

(defmethod test nil
[& _]
nil)

(defmethod test :test
[& _]
nil)

(defmethod test :test2 named-method
[& _]
nil)

0 comments on commit 0a77b74

Please sign in to comment.