Sha256: 1b7acf621eaebec60262b60877ce415057c014f7dd49284f42c7be58dc6b3b79
Contents?: true
Size: 1.76 KB
Versions: 325
Compression:
Stored size: 1.76 KB
Contents
import XCTest @testable import Isogram class IsogramTests: XCTestCase { func testEmptyString() { XCTAssertTrue(Isogram.isIsogram("")) } func testIsogramWithOnlyLowerCaseCharacters() { XCTAssertTrue(Isogram.isIsogram("isogram")) } func testWordWithOneDuplicatedCharacter() { XCTAssertFalse(Isogram.isIsogram("eleven")) } func testLongestReportedEnglishIsogram() { XCTAssertTrue(Isogram.isIsogram("subdermatoglyphic")) } func testWordWithDuplicatedCharacterInMixedCase() { XCTAssertFalse(Isogram.isIsogram("Alphabet")) } func testHypotheticalIsogrammicWordWithHyphen() { XCTAssertTrue(Isogram.isIsogram("thumbscrew-japingly")) } func testIsogramWithDuplicatedNonLetterCharacter() { XCTAssertTrue(Isogram.isIsogram("Hjelmqvist-Gryb-Zock-Pfund-Wax")) } func testMadeUpNameThatIsAnIsogram() { XCTAssertTrue(Isogram.isIsogram("Emily Jung Schwartzkopf")) } static var allTests: [(String, (IsogramTests) -> () throws -> Void)] { return [ ("testEmptyString", testEmptyString), ("testIsogramWithOnlyLowerCaseCharacters", testIsogramWithOnlyLowerCaseCharacters), ("testWordWithOneDuplicatedCharacter", testWordWithOneDuplicatedCharacter), ("testLongestReportedEnglishIsogram", testLongestReportedEnglishIsogram), ("testWordWithDuplicatedCharacterInMixedCase", testWordWithDuplicatedCharacterInMixedCase), ("testHypotheticalIsogrammicWordWithHyphen", testHypotheticalIsogrammicWordWithHyphen), ("testIsogramWithDuplicatedNonLetterCharacter", testIsogramWithDuplicatedNonLetterCharacter), ("testMadeUpNameThatIsAnIsogram", testMadeUpNameThatIsAnIsogram), ] } }
Version data entries
325 entries across 325 versions & 1 rubygems