Details
-
Type:
Defect
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: Backlog
-
Fix Version/s: Backlog
-
Component/s: None
-
Labels:None
Description
If clojure.test/are is given an argument set with missing parameters, it silently ignores the extra parameters at the end instead of failing.
Clojure 1.3.0-master-SNAPSHOT user=> (use 'clojure.test) nil user=> (deftest foo (are [x y] (= x y) 1 1 2 2 3 4)) #'user/foo user=> (foo) FAIL in (foo) (NO_SOURCE_FILE:6) expected: (= 3 4) actual: (not (= 3 4)) nil user=> (deftest missing-argument (are [x y] (= x y) 1 1 2 2 3)) #'user/missing-argument user=> (missing-argument) nil ;; doesn't fail
Duplicate of
CLJ-931. (Well, basically the other way round, butCLJ-931has a fix attached, so I close this one.)CLJ-931. (Well, basically the other way round, butCLJ-931has a fix attached, so I close this one.)