Sha256: f0185ae854d53ec7d3c35940e2b8c273c5f1abdb44005e03c9a7928ded5db7d6

Contents?: true

Size: 1.87 KB

Versions: 396

Compression:

Stored size: 1.87 KB

Contents

#import <XCTest/XCTest.h>

#if __has_include("RaindropsExample.h")
# import "RaindropsExample.h"
# else
# import "Raindrops.h"
#endif

@interface RaindropsTest : XCTestCase

@end

@implementation RaindropsTest

- (void)test1 {
    XCTAssertEqualObjects(@"1", [[[Raindrops alloc] initWithNumber:1] sounds]);
}

- (void)test3 {
    XCTAssertEqualObjects(@"Pling", [[[Raindrops alloc] initWithNumber:3] sounds]);
}

- (void)test5 {
    XCTAssertEqualObjects(@"Plang", [[[Raindrops alloc] initWithNumber:5] sounds]);
}

- (void)test7 {
    XCTAssertEqualObjects(@"Plong", [[[Raindrops alloc] initWithNumber:7] sounds]);
}

- (void)test6 {
    XCTAssertEqualObjects(@"Pling", [[[Raindrops alloc] initWithNumber:6] sounds]);
}

- (void)test9 {
    XCTAssertEqualObjects(@"Pling", [[[Raindrops alloc] initWithNumber:9] sounds]);
}

- (void)test10 {
    XCTAssertEqualObjects(@"Plang", [[[Raindrops alloc] initWithNumber:10] sounds]);
}

- (void)test14 {
    XCTAssertEqualObjects(@"Plong", [[[Raindrops alloc] initWithNumber:14] sounds]);
}

- (void)test15 {
    XCTAssertEqualObjects(@"PlingPlang", [[[Raindrops alloc] initWithNumber:15] sounds]);
}

- (void)test21 {
    XCTAssertEqualObjects(@"PlingPlong", [[[Raindrops alloc] initWithNumber:21] sounds]);
}

- (void)test25 {
    XCTAssertEqualObjects(@"Plang", [[[Raindrops alloc] initWithNumber:25] sounds]);
}

- (void)test35 {
    XCTAssertEqualObjects(@"PlangPlong", [[[Raindrops alloc] initWithNumber:35] sounds]);
}

- (void)test49 {
    XCTAssertEqualObjects(@"Plong", [[[Raindrops alloc] initWithNumber:49] sounds]);
}

- (void)test52 {
    XCTAssertEqualObjects(@"52", [[[Raindrops alloc] initWithNumber:52] sounds]);
}

- (void)test105 {
    XCTAssertEqualObjects(@"PlingPlangPlong", [[[Raindrops alloc] initWithNumber:105] sounds]);
}

- (void)test12121 {
    XCTAssertEqualObjects(@"12121", [[[Raindrops alloc] initWithNumber:12121] sounds]);
}

@end

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.138 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.137 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.136 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.135 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.134 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.133 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.132 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.131 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.130 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.129 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.128 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.127 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.126 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.125 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.124 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.123 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.122 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.121 tracks/objective-c/exercises/raindrops/RaindropsTest.m
trackler-2.2.1.120 tracks/objective-c/exercises/raindrops/RaindropsTest.m