mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
890 B
Objective-C
18 lines
890 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "Release.h"
|
|
|
|
#define testPhoneNumber1 [PhoneNumber phoneNumberFromE164:@"+19027777777"]
|
|
#define testPhoneNumber2 [PhoneNumber phoneNumberFromE164:@"+19028888888"]
|
|
|
|
#define test(expressionExpectedToBeTrue) XCTAssert(expressionExpectedToBeTrue, @"")
|
|
#define testThrows(expressionExpectedToThrow) XCTAssertThrows(expressionExpectedToThrow, @"")
|
|
#define testDoesNotThrow(expressionExpectedToNotThrow) expressionExpectedToNotThrow
|
|
#define testEnv [Release unitTestEnvironment:@[]]
|
|
#define testEnvWith(options) [Release unitTestEnvironment:(@[options])]
|
|
#define testChurnUntil(condition, timeout) test(_testChurnHelper(^int{ return condition; }, timeout))
|
|
#define testChurnAndConditionMustStayTrue(condition, timeout) test(!_testChurnHelper(^int{ return !(condition); }, timeout))
|