Sha256: 792bcd43376ea02dd2b06d037aeb739a83b768acc4833e095c93f7eeeb8d62bf

Contents?: true

Size: 1.48 KB

Versions: 68

Compression:

Stored size: 1.48 KB

Contents

import Isogram from './isogram'

describe('Check if the given string is an isogram', () => {
    it('empty string', () => {
        const expected = true
        expect(Isogram.isIsogram('')).toEqual(expected)
    })

    xit('isogram with only lower case characters', () => {
        const expected = true
        expect(Isogram.isIsogram('isogram')).toEqual(expected)
    })

    xit('word with one duplicated character', () => {
        const expected = false
        expect(Isogram.isIsogram('eleven')).toEqual(expected)
    })

    xit('longest reported english isogram', () => {
        const expected = true
        expect(Isogram.isIsogram('subdermatoglyphic')).toEqual(expected)
    })

    xit('word with duplicated character in mixed case', () => {
        const expected = false
        expect(Isogram.isIsogram('Alphabet')).toEqual(expected)
    })

    xit('hypothetical isogrammic word with hyphen', () => {
        const expected = true
        expect(Isogram.isIsogram('thumbscrew-japingly')).toEqual(expected)
    })

    xit('isogram with duplicated hyphen', () => {
        const expected = true
        expect(Isogram.isIsogram('six-year-old')).toEqual(expected)
    })

    xit('made-up name that is an isogram', () => {
        const expected = true
        expect(Isogram.isIsogram('Emily Jung Schwartzkopf')).toEqual(expected)
    })

    xit('duplicated character in the middle', () => {
        const expected = false
        expect(Isogram.isIsogram('accentor')).toEqual(expected)
    })
})

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.158 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.157 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.156 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.155 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.154 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.153 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.152 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.151 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.150 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.149 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.148 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.147 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.146 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.145 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.144 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.143 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.142 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.141 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.140 tracks/typescript/exercises/isogram/isogram.test.ts