Skip to content

Instantly share code, notes, and snippets.

@landonf
landonf / 1-XSmallTest-Usage.m
Last active August 29, 2015 14:02
A much nicer single-header XCTest-compatible testing DSL, all in a single header.
#import "XSmallTests.h"
xsm_given("an integer value") {
int v;
xsm_when("the value is 42") {
v = 42;
xsm_then("the value is the answer to the life, the universe, and everything") {
XCTAssertEqual(42, v);
}