[CLJ-806] clojure.test/are does not fail with insufficient arguments Created: 03/Jun/11 Updated: 16/Feb/12 Resolved: 16/Feb/12 |
|
| Status: | Closed |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | Backlog |
| Fix Version/s: | Backlog |
| Type: | Defect | Priority: | Minor |
| Reporter: | Stuart Sierra | Assignee: | Stuart Sierra |
| Resolution: | Duplicate | Votes: | 0 |
| 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 |
| Comments |
| Comment by Tassilo Horn [ 16/Feb/12 11:43 AM ] |
|
Duplicate of |