core.match

One unit test always passes without testing anything

Details

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

Description

This test is incorrectly parenthesized. It has the structure (is (= expr1) expr2), which always passes:

(deftest vector-rest-pattern-1
  (is (= (match [[:plus 1 2 3]]
           [[:pow arg pow]] 0
           [[:plus & args]] 1
           :else 2))
    1))

Another test named match-differing-patterns is repeated verbatim twice.

Activity

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: