Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MATCH-68: variant of MATCH-56, vectors w/ rest pattern

  • Loading branch information...
commit 302c355ebf751fa8dc442c8db8b901ebb4eacfae 1 parent 59df5b3
David Nolen swannodette authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/test/clojure/clojure/core/match/test/core.clj
6 src/test/clojure/clojure/core/match/test/core.clj
View
@@ -801,3 +801,9 @@
[[h & t]] [h t]
:else :nomatch))
[1 []])))
+
+(deftest match-68
+ (is (= (match [[:x]]
+ [[m n & _]] 1
+ :else nil)
+ nil)))
Please sign in to comment.
Something went wrong with that request. Please try again.