v4.1.1
Version 4.1.1
31 Dec 2014
- Oops! Add the new features to OCHamcrest.h
Version 4.1.0
30 Dec 2014
Fixes:
- Fix crash when OCHamcrest tries to describe an OCMockito mock object. Thanks to: Michael Seghers
- Fix crash when
equalToBool
attempts to match a non-number.
Features:
assertThatAfter
tests asynchronous code, retrying the assertion until a given timeout.
Wrap the code you want to evaluate infutureValueOf
. Thanks to: Sergio Padrino- New matcher
everyItem
matches collections if every item satisfies a given matcher. - New matcher
throwsException
matches a block if it throws an exception satisfying a given
matcher. - New matchers
isTrue
andisFalse
match non-zero and zero NSNumbers. Intended to replace
equalToBool
.
Improvements:
- Added new base class HCDiagnosingMatcher to simplify complex matchers.
equalToBool
matcher can no longer be created with a value other than YES or NO. This especially
avoids the accidental @yES.- Improved ordered comparison matchers (
greaterThan
, etc.) so that when the given object can't be
compared, the matchers return NO instead of throwing an exception. - Improved mismatch descriptions for
hasItem
. - Improved mismatch descriptions for
hasProperty
to show actual property value or "no property". - Improved mismatch descriptions for
onlyContains
, especially in reporting all elements that don't
match. - Updated project to make it run-path dependent. Thanks to: csano
Deprecated:
equalToBool
deprecated in favor ofisTrue
andisFalse
.equalToBool(YES)
had too much
potential for symantic error since any non-zero number evaluates to true.