OCHamcrest
|
Matchers for testing equality against primitive numeric types.
Defines | |
#define | equalToBool HC_equalToBool |
equalToBool(value) - Matches if object is equal to NSNumber created from a BOOL . | |
#define | equalToChar HC_equalToChar |
equalToChar(value) - Matches if object is equal to NSNumber created from a char . | |
#define | equalToDouble HC_equalToDouble |
equalToDouble(value) - Matches if object is equal to NSNumber created from a double . | |
#define | equalToFloat HC_equalToFloat |
equalToFloat(value) - Matches if object is equal to NSNumber created from a float . | |
#define | equalToInt HC_equalToInt |
equalToInt(value) - Matches if object is equal to NSNumber created from an int . | |
#define | equalToLong HC_equalToLong |
equalToLong(value) - Matches if object is equal to NSNumber created from a long . | |
#define | equalToLongLong HC_equalToLongLong |
equalToLongLong(value) - Matches if object is equal to NSNumber created from a long long . | |
#define | equalToShort HC_equalToShort |
equalToShort(value) - Matches if object is equal to NSNumber created from a short . | |
#define | equalToUnsignedChar HC_equalToUnsignedChar |
equalToUnsignedChar(value) - Matches if object is equal to NSNumber created from an unsigned char . | |
#define | equalToUnsignedInt HC_equalToUnsignedInt |
equalToUnsignedInt(value) - Matches if object is equal to NSNumber created from an unsigned int . | |
#define | equalToUnsignedLong HC_equalToUnsignedLong |
equalToUnsignedLong(value) - Matches if object is equal to NSNumber created from an unsigned long . | |
#define | equalToUnsignedLongLong HC_equalToUnsignedLongLong |
equalToUnsignedLongLong(value) - Matches if object is equal to NSNumber created from an unsigned long long . | |
#define | equalToUnsignedShort HC_equalToUnsignedShort |
equalToUnsignedShort(value) - Matches if object is equal to NSNumber created from an unsigned short . | |
#define | equalToInteger HC_equalToInteger |
equalToInteger(value) - Matches if object is equal to NSNumber created from an NSInteger . | |
#define | equalToUnsignedInteger HC_equalToUnsignedInteger |
equalToUnsignedInteger(value) - Matches if object is equal to NSNumber created from an NSUInteger . |
Matchers for testing equality against primitive numeric types.
#define equalToBool HC_equalToBool |
equalToBool(value) - Matches if object is equal to NSNumber
created from a BOOL
.
value | The BOOL value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a BOOL
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToBool
instead.)
#define equalToChar HC_equalToChar |
equalToChar(value) - Matches if object is equal to NSNumber
created from a char
.
value | The char value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a char
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToChar
instead.)
#define equalToDouble HC_equalToDouble |
equalToDouble(value) - Matches if object is equal to NSNumber
created from a double
.
value | The double value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a double
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToDouble
instead.)
#define equalToFloat HC_equalToFloat |
equalToFloat(value) - Matches if object is equal to NSNumber
created from a float
.
value | The float value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a float
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToFloat
instead.)
#define equalToInt HC_equalToInt |
equalToInt(value) - Matches if object is equal to NSNumber
created from an int
.
value | The int value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a int
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToInt
instead.)
#define equalToInteger HC_equalToInteger |
equalToInteger(value) - Matches if object is equal to NSNumber
created from an NSInteger
.
value | The NSInteger value from which to create an NSNumber . |
This matcher creates an NSNumber
object from an NSInteger
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToInteger
instead.)
#define equalToLong HC_equalToLong |
equalToLong(value) - Matches if object is equal to NSNumber
created from a long
.
value | The long value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a long
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToLong
instead.)
#define equalToLongLong HC_equalToLongLong |
equalToLongLong(value) - Matches if object is equal to NSNumber
created from a long long
.
value | The long long value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a long long
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToLongLong
instead.)
#define equalToShort HC_equalToShort |
equalToShort(value) - Matches if object is equal to NSNumber
created from a short
.
value | The short value from which to create an NSNumber . |
This matcher creates an NSNumber
object from a short
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToShort
instead.)
equalToUnsignedChar(value) - Matches if object is equal to NSNumber
created from an unsigned char
.
value | The unsigned char value from which to create an NSNumber . |
This matcher creates an NSNumber
object from an unsigned char
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToUnsignedChar
instead.)
equalToUnsignedInt(value) - Matches if object is equal to NSNumber
created from an unsigned int
.
value | The unsigned int value from which to create an NSNumber . |
This matcher creates an NSNumber
object from an unsigned int
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToUnsignedInt
instead.)
equalToUnsignedInteger(value) - Matches if object is equal to NSNumber
created from an NSUInteger
.
value | The NSUInteger value from which to create an NSNumber . |
This matcher creates an NSNumber
object from an NSUInteger
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToUnsignedInteger
instead.)
equalToUnsignedLong(value) - Matches if object is equal to NSNumber
created from an unsigned long
.
value | The unsigned long value from which to create an NSNumber . |
This matcher creates an NSNumber
object from an unsigned long
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToUnsignedLong
instead.)
equalToUnsignedLongLong(value) - Matches if object is equal to NSNumber
created from an unsigned long long
.
value | The unsigned long long value from which to create an NSNumber . |
This matcher creates an NSNumber
object from an unsigned long long
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToUnsignedLongLong
instead.)
equalToUnsignedShort(value) - Matches if object is equal to NSNumber
created from an unsigned short
.
value | The unsigned short value from which to create an NSNumber . |
This matcher creates an NSNumber
object from an unsigned short
value and compares the evaluated object to it for equality.
(In the event of a name clash, don't #define HC_SHORTHAND
and use the synonym HC_equalToUnsignedShort
instead.)