Skip to content

Instantly share code, notes, and snippets.

@Apemb
Apemb / nimbleCustomMatcher.swift
Last active January 20, 2017 13:33
Custom Matcher for Nimble
import Nimble
extension Expectation {
public func to🚨<U>(_ matcher: U, description: String? = nil) where U: Matcher, U.ValueType == T {
to(matcher, description: appendGraphicError(to: description))
}
public func toNot🚨<U>(_ matcher: U, description: String? = nil) where U: Matcher, U.ValueType == T {
toNot(matcher, description: appendGraphicError(to: description))
}