TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Andrew Sliwinski.
Simply import the EDAssert
headers and ensure that you have linked the OCHamcrest framework within your test target.
While building integration or functional tests with OCUnit
, one common issue is that asyncronous blocks are not supported. To resolve this, you can use the EDAssertEventually
class to perform tests that poll against an async event over time:
BOOL __block test = false;
[self doSomethingAsync:^() {
test = true;
} failure:^() {
test = false;
}];
assertEventuallyWithBlockAndTimeout(^{
return test;
}, 10);
NSString *fuzz = [EDFuzz withLength:30];
NSLog(@"Fuzz: %@", fuzz); // C4W,qndN4a{Bv9I4&B^oVr7usJTTmQ