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.159 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.158 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.157 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.156 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.155 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.154 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.153 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.152 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.151 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.150 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.149 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.148 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.147 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.146 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.145 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.144 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.143 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.142 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.141 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.140 tracks/objective-c/exercises/two-fer/TwoFerTest.m