Sha256: ee939c2195163eb1339bac5608ddbec41dce705d5a2e84c6677fc0f74170451d

Contents?: true

Size: 1.13 KB

Versions: 188

Compression:

Stored size: 1.13 KB

Contents

#import <XCTest/XCTest.h>

#if __has_include("RNATranscriptionExample.h")
# import "RNATranscriptionExample.h"
# else
# import "RNATranscription.h"
#endif

@interface RNATranscriptionTest : XCTestCase

@end

@implementation RNATranscriptionTest

- (void)test1 {
    XCTAssertEqualObjects(@"G", [[[RNATranscription alloc] init] rnaFromDNAStrand:@"C"]);
}

- (void)test2 {
    XCTAssertEqualObjects(@"C", [[[RNATranscription alloc] init] rnaFromDNAStrand:@"G"]);
}

- (void)test3 {
    XCTAssertEqualObjects(@"A", [[[RNATranscription alloc] init] rnaFromDNAStrand:@"T"]);
}

- (void)test4 {
    XCTAssertEqualObjects(@"U", [[[RNATranscription alloc] init] rnaFromDNAStrand:@"A"]);
}

- (void)test5 {
    XCTAssertEqualObjects(@"UGCACCAGAAUU", [[[RNATranscription alloc] init] rnaFromDNAStrand:@"ACGTGGTCTTAA"]);
}

- (void)test6 {
    XCTAssertEqualObjects(nil, [[[RNATranscription alloc] init] rnaFromDNAStrand:@"U"]);
}

- (void)test7 {
    XCTAssertEqualObjects(nil, [[[RNATranscription alloc] init] rnaFromDNAStrand:@"XXX"]);
}

- (void)test8 {
    XCTAssertEqualObjects(nil, [[[RNATranscription alloc] init] rnaFromDNAStrand:@"ACGTXXXCTTAA"]);
}

@end

Version data entries

188 entries across 188 versions & 1 rubygems

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