Sha256: 90bc05afe12c83967ed5012ab9c908016025defff3b8c4fc6c2de22ed7de4546
Contents?: true
Size: 973 Bytes
Versions: 71
Compression:
Stored size: 973 Bytes
Contents
#if swift(>=3.0) import XCTest #endif class ScrabbleScoreTest: XCTestCase { func testEmptyWordScoresZero() { XCTAssertEqual( 0, Scrabble("").score) } func testWhitespaceScoresZero() { XCTAssertEqual( 0, Scrabble(" \t\n").score) } func testNilScoresZero() { XCTAssertEqual( 0, Scrabble(nil).score) } func testScoresVeryShortWord() { XCTAssertEqual( 1, Scrabble("a").score) } func testScoresOtherVeryShortWord() { XCTAssertEqual( 4, Scrabble("f").score) } func testSimpleWordScoresTheNumberOfLetters() { XCTAssertEqual( 6, Scrabble("street").score) } func testComplicatedWordScoresMore() { XCTAssertEqual( 22, Scrabble("quirky").score) } func testScoresAreCaseInsensitive() { XCTAssertEqual( 41, Scrabble("OXYPHENBUTAZONE").score) } func testConvenientScoring() { XCTAssertEqual( 13, Scrabble.score("alacrity")) } }
Version data entries
71 entries across 71 versions & 1 rubygems