hyperthunk / hamcrest-erlang

Erlang port of Hamcrest
http://travis-ci.org/hyperthunk/hamcrest-erlang
BSD 3-Clause "New" or "Revised" License
89 stars 32 forks source link

Fix hamcrest:match/2 return value #13

Closed horkhe closed 11 years ago

horkhe commented 11 years ago

A catch expression was not properly parenthesized, as a result the return value of hamcrest:match/2 in case of not-match was not false but something like:

{'EXIT',
 {{assertion_failed,
   [{expected,1000},{actual,1001},{matcher,equal_to}]},
  [{hamcrest,assert_that,2,[{...}|...]},
...