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.180 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.179 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.178 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.177 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.176 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.175 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.174 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.173 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.172 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.171 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.170 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.169 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.167 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.166 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.165 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.164 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.163 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.162 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.161 tracks/typescript/exercises/isogram/isogram.test.ts
trackler-2.2.1.160 tracks/typescript/exercises/isogram/isogram.test.ts