mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 19:30:09 +00:00
43 lines
1011 B
Objective-C
43 lines
1011 B
Objective-C
//
|
|
// OCHamcrest - HCIsSame.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 <OCHamcrestIOS/HCBaseMatcher.h>
|
|
|
|
|
|
@interface HCIsSame : HCBaseMatcher
|
|
{
|
|
id object;
|
|
}
|
|
|
|
+ (instancetype)isSameAs:(id)anObject;
|
|
- (instancetype)initSameAs:(id)anObject;
|
|
|
|
@end
|
|
|
|
|
|
OBJC_EXPORT id<HCMatcher> HC_sameInstance(id object);
|
|
|
|
/**
|
|
sameInstance(anObject) -
|
|
Matches if evaluated object is the same instance as a given object.
|
|
|
|
@param anObject The object to compare against as the expected value.
|
|
|
|
This matcher compares the address of the evaluated object to determine if it is the same object
|
|
as @a anObject.
|
|
|
|
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym
|
|
@c HC_sameInstance instead.)
|
|
|
|
@ingroup object_matchers
|
|
*/
|
|
#ifdef HC_SHORTHAND
|
|
#define sameInstance HC_sameInstance
|
|
#endif
|