We're updating the issue view to help you get more done. 

Syntactically broken clojure.test/are tests succeed

Description

While clojure.test/are is a very useful macro, it has one major flaw. If the assertion is syntactically incorrect, the test succeeds. Take this testcase:

1 2 3 (deftest broken-test (are [a b c] (= a b c) 1 1))

See the error? The are form takes three values, but I have provided only two. The test simply passes.

Latest patch checks the number of arguments to are and throws an exception if they don't match.

Environment

None

Status

Assignee

Stuart Sierra

Reporter

Tassilo Horn

Labels

None

Approval

Ok

Patch

Code

Fix versions

Affects versions

Release 1.3

Priority

Minor