Sha256: 207158ccd8ad796aacb7a0c87772489d8c0a26f8b804c1ab52877a49694cca34

Contents?: true

Size: 613 Bytes

Versions: 103

Compression:

Stored size: 613 Bytes

Contents

#import <XCTest/XCTest.h>

#if __has_include("TwoFerExample.h")
# import "TwoFerExample.h"
# else
# import "TwoFer.h"
#endif

@interface TwoFerTest : XCTestCase

@end

@implementation TwoFerTest

NS_ASSUME_NONNULL_BEGIN
    
- (void)testNoNameGiven {
    XCTAssertEqualObjects([TwoFer twoFerWithName:nil], @"One for you, one for me.");
}

- (void)testANameGiven {
    XCTAssertEqualObjects([TwoFer twoFerWithName:@"Alice"], @"One for Alice, one for me.");
}

- (void)testAnotherNameGiven {
    XCTAssertEqualObjects([TwoFer twoFerWithName:@"Bob"], @"One for Bob, one for me.");
}

NS_ASSUME_NONNULL_END
    
@end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.179 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.178 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.177 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.176 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.175 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.174 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.173 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.172 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.171 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.170 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.169 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.167 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.166 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.165 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.164 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.163 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.162 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.161 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.160 tracks/objective-c/exercises/two-fer/TwoFerTest.m