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.119 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.118 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.117 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.116 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.115 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.114 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.113 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.111 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.110 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.109 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.108 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.107 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.106 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.105 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.104 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.103 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.102 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.101 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.100 tracks/objective-c/exercises/two-fer/TwoFerTest.m
trackler-2.2.1.99 tracks/objective-c/exercises/two-fer/TwoFerTest.m