|
ObjFW
|
Go to the source code of this file.
Macros | |
| #define | OTAssert(condition, ...) |
| Asserts that the specified condition condition holds. | |
| #define | OTAssertTrue(condition, ...) |
| Asserts that the specified condition is true. | |
| #define | OTAssertFalse(condition, ...) |
| Asserts that the specified condition is false. | |
| #define | OTAssertEqual(a, b, ...) |
| Asserts that the two values are equal. | |
| #define | OTAssertNotEqual(a, b, ...) |
| Asserts that the two values are not equal. | |
| #define | OTAssertLessThan(a, b, ...) |
| Asserts that the value is less than another value. | |
| #define | OTAssertLessThanOrEqual(a, b, ...) |
| Asserts that the value is less than or equal to another value. | |
| #define | OTAssertGreaterThan(a, b, ...) |
| Asserts that the value is greater than another value. | |
| #define | OTAssertGreaterThanOrEqual(a, b, ...) |
| Asserts that the value is greater than or equal to another value. | |
| #define | OTAssertEqualObjects(a, b, ...) |
| Asserts that the two objects are equal. | |
| #define | OTAssertNotEqualObjects(a, b, ...) |
| Asserts that the two objects are not equal. | |
| #define | OTAssertNil(object, ...) |
| Asserts that the specified object is nil. | |
| #define | OTAssertNotNil(object, ...) |
| Asserts that the specified object is not nil. | |
| #define | OTAssertThrows(expression, ...) |
| Asserts that the specified expression throws an exception. | |
| #define | OTAssertThrowsSpecific(expression, exception, ...) |
| Asserts that the specified expression throws a specific exception. | |
| #define | OTSkip(...) |
| Skips the current test, making it neither fail nor succeed. | |
| #define OTAssert | ( | condition, | |
| ... ) |
Asserts that the specified condition condition holds.
| condition | The condition to check |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertEqual | ( | a, | |
| b, | |||
| ... ) |
Asserts that the two values are equal.
| a | The value to check |
| b | The expected value |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertEqualObjects | ( | a, | |
| b, | |||
| ... ) |
Asserts that the two objects are equal.
| a | The object to check |
| b | The object a is expected to be equal to |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertFalse | ( | condition, | |
| ... ) |
Asserts that the specified condition is false.
| condition | The condition to check |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertGreaterThan | ( | a, | |
| b, | |||
| ... ) |
Asserts that the value is greater than another value.
| a | The value to check |
| b | The value a should be greater than |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertGreaterThanOrEqual | ( | a, | |
| b, | |||
| ... ) |
Asserts that the value is greater than or equal to another value.
| a | The value to check |
| b | The value a should be greater than or equal to |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertLessThan | ( | a, | |
| b, | |||
| ... ) |
Asserts that the value is less than another value.
| a | The value to check |
| b | The value a should be less than |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertLessThanOrEqual | ( | a, | |
| b, | |||
| ... ) |
Asserts that the value is less than or equal to another value.
| a | The value to check |
| b | The value a should be less than or equal to |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertNil | ( | object, | |
| ... ) |
| #define OTAssertNotEqual | ( | a, | |
| b, | |||
| ... ) |
Asserts that the two values are not equal.
| a | The value to check |
| b | The value a should not have |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertNotEqualObjects | ( | a, | |
| b, | |||
| ... ) |
Asserts that the two objects are not equal.
| a | The object to check |
| b | The object a is expected to be not equal to |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertNotNil | ( | object, | |
| ... ) |
| #define OTAssertThrows | ( | expression, | |
| ... ) |
Asserts that the specified expression throws an exception.
| expression | The expression that should throw |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertThrowsSpecific | ( | expression, | |
| exception, | |||
| ... ) |
Asserts that the specified expression throws a specific exception.
| expression | The expression that should throw |
| exception | The exception the expression should throw (as just the class name, without quotes) |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTAssertTrue | ( | condition, | |
| ... ) |
Asserts that the specified condition is true.
| condition | The condition to check |
| ... | An optional format string to print if the assertion failed, followed by optional arguments |
| #define OTSkip | ( | ... | ) |
Skips the current test, making it neither fail nor succeed.
| ... | An optional format string to print why the test was skipped, followed by optional arguments |