23 lines
549 B
Objective-C

//
// OCHamcrest - HCWrapInMatcher.h
// Copyright 2013 hamcrest.org. See LICENSE.txt
//
// Created by: Jon Reid, http://qualitycoding.org/
// Docs: http://hamcrest.github.com/OCHamcrest/
// Source: https://github.com/hamcrest/OCHamcrest
//
#import <objc/objc-api.h>
@protocol HCMatcher;
/**
Wraps argument in a matcher, if necessary.
@return The argument as-if if it is already a matcher, otherwise wrapped in an @ref equalTo matcher.
@ingroup helpers
*/
OBJC_EXPORT id<HCMatcher> HCWrapInMatcher(id matcherOrValue);