Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Assertion extensions and utilities for OCUnit

tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Assert

Assertion extensions and utilities for OCUnit

Installation

Simply import the EDAssert headers and ensure that you have linked the OCHamcrest framework within your test target.

EDAssertEventually

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);

EDFuzz

NSString *fuzz = [EDFuzz withLength:30];
NSLog(@"Fuzz: %@", fuzz);   // C4W,qndN4a{Bv9I4&B^oVr7usJTTmQ
Something went wrong with that request. Please try again.