Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
MATCH-97: satisfies? calls for IMatchLookup perf issues
Breaking change, `c.c.match/match` no longer supports `c.c.match.protocol/IMatchLookup`. The performance hit is too great when recursively matching terms. The old behavior is provided for in a new macro `c.c.match/matchm`.
- Loading branch information
dnolen
committed
Dec 10, 2014
1 parent
0545c6a
commit 5c1af7b
Showing
4 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
(ns clojure.core.match.test.date | ||
(:use clojure.test) | ||
(:use [clojure.core.match :only [match]]) | ||
(:use [clojure.core.match :only [matchm]]) | ||
(:use clojure.core.match.date)) | ||
|
||
(deftest date-test1 | ||
(is (= (match [(java.util.Date. 2010 10 1 12 30)] | ||
[{:year 2009 :month a}] a | ||
[{:year (:or 2010 2011) :month b}] b | ||
:else :wrong) | ||
10))) | ||
(is (= (matchm [(java.util.Date. 2010 10 1 12 30)] | ||
[{:year 2009 :month a}] a | ||
[{:year (:or 2010 2011) :month b}] b | ||
:else :wrong) | ||
10))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters