<< Back to previous view

[MATCH-71] map patterns don't exhibit as much test sharing as expected Created: 18/Jun/13  Updated: 28/Jul/13  Resolved: 18/Jun/13

Status: Closed
Project: core.match
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: David Nolen Assignee: David Nolen
Resolution: Completed Votes: 0
Labels: None


`map-pattern-match-1` in the test cases tests the value for :b only in the first line, it backtracks and considers :a instead of looking the second value for :b first.

for example for:

(match [x]
  [{:a _ :b 2}] :a0
  [{:a 1 :b 1}] :a1)

The decision tree looks far too complicated.

Comment by David Nolen [ 18/Jun/13 11:42 PM ]

fixed, http://github.com/clojure/core.match/commit/babb964413c2dc0058b4bb36f9a903a9de74f755

Generated at Tue Jan 23 08:23:48 CST 2018 using JIRA 4.4#649-r158309.