core.match

Fail to match empty vector

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

(match (vector)
  ([(re :guard string?)] :seq) 4
  [] 6)

This should evaluate to 6 not nil.

Activity

Hide
Jason Jackson added a comment -

tested on 0.2.0-alpha10-SNAPSHOT

Show
Jason Jackson added a comment - tested on 0.2.0-alpha10-SNAPSHOT
David Nolen made changes -
Field Original Value New Value
Description (match (vector)
       ([(re :when string?)] :seq) 4
       [] 6)
This should evaluate to 6 not nil.


{code}
(match (vector)
  ([(re :guard string?)] :seq) 4
  [] 6)
{code}

This should evaluate to 6 not nil.


Hide
David Nolen added a comment -
Show
David Nolen added a comment - resolved in master, added test case http://github.com/clojure/core.match/commit/b21d1a09e0d495003fc45ca48568355609ed69bd
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: