Sha256: 5d1cc3b3bd26525029b404df6dd1ff21abd19e56354ff26b7e98f3078ede780f
Contents?: true
Size: 1.03 KB
Versions: 363
Compression:
Stored size: 1.03 KB
Contents
#import <XCTest/XCTest.h> #if __has_include("IsogramExample.h") # import "IsogramExample.h" # else # import "Isogram.h" #endif @interface IsogramTest : XCTestCase @end @implementation IsogramTest - (void)testEmptyString { XCTAssertTrue([Isogram isIsogram:@""]); } - (void)testIsogramWithOnlyLowerCaseCharacters { XCTAssertTrue([Isogram isIsogram:@"isogram"]); } - (void)testWordWithOneDuplicatedCharacter { XCTAssertFalse([Isogram isIsogram:@"eleven"]); } - (void)testLongestReportedEnglishIsogram { XCTAssertTrue([Isogram isIsogram:@"subdermatoglyphic"]); } - (void)testWordWithDuplicatedCharacterInMixedCase { XCTAssertFalse([Isogram isIsogram:@"Alphabet"]); } - (void)testHypotheticalIsogrammicWordWithHyphen { XCTAssertTrue([Isogram isIsogram:@"thumbscrew-japingly"]); } - (void)testIsogramWithDuplicatedNonLetterCharacter { XCTAssertTrue([Isogram isIsogram:@"Hjelmqvist-Gryb-Zock-Pfund-Wax"]); } - (void)testMadeUpNameThatIsAnIsogram { XCTAssertTrue([Isogram isIsogram:@"Emily Jung Schwartzkopf"]); } @end
Version data entries
363 entries across 363 versions & 1 rubygems