Sha256: 675be1492d453586e6d8b1a4bbb6e87aa6cef71809baf4c4e5cc4b91cd24fe05
Contents?: true
Size: 572 Bytes
Versions: 208
Compression:
Stored size: 572 Bytes
Contents
import score from './scrabble-score'; describe('Scrabble', function() { it('scores an empty word as zero',() => expect(score('')).toEqual(0)); xit('scores a null as zero',() => expect(score(null)).toEqual(0)); xit('scores a very short word',() => expect(score('a')).toEqual(1)); xit('scores the word by the number of letters', () => expect(score('street')).toEqual(6)); xit('scores more complicated words with more',() => expect(score('quirky')).toEqual(22)); xit('scores case insensitive words',() => expect(score('OXYPHENBUTAZONE')).toEqual(41)); });
Version data entries
208 entries across 208 versions & 1 rubygems