core.match

map patterns don't exhibit as much test sharing as expected

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

`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.

Activity

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: