Sha256: 52c3c215b430c461e37fc54585a8b8aff1c21c2e3df18d4dc0a09cff5d685b93

Contents?: true

Size: 796 Bytes

Versions: 68

Compression:

Stored size: 796 Bytes

Contents

import ReverseString from './reverse-string'

describe('Reverse String', () => {
    it('an empty string', () => {
        const expected = ''
        expect(ReverseString.reverse('')).toEqual(expected)
    })

    xit('a word', () => {
        const expected = 'tobor'
        expect(ReverseString.reverse('robot')).toEqual(expected)
    })

    xit('a capitalized word', () => {
        const expected = 'nemaR'
        expect(ReverseString.reverse('Ramen')).toEqual(expected)
    })

    xit('a sentence with punctuation', () => {
        const expected = `!yrgnuh m'I`
        expect(ReverseString.reverse(`I'm hungry!`)).toEqual(expected)
    })

    xit('a palindrome', () => {
        const expected = 'racecar'
        expect(ReverseString.reverse('racecar')).toEqual(expected)
    })
})

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/typescript/exercises/reverse-string/reverse-string.test.ts
trackler-2.2.1.118 tracks/typescript/exercises/reverse-string/reverse-string.test.ts
trackler-2.2.1.117 tracks/typescript/exercises/reverse-string/reverse-string.test.ts
trackler-2.2.1.116 tracks/typescript/exercises/reverse-string/reverse-string.test.ts
trackler-2.2.1.115 tracks/typescript/exercises/reverse-string/reverse-string.test.ts
trackler-2.2.1.114 tracks/typescript/exercises/reverse-string/reverse-string.test.ts
trackler-2.2.1.113 tracks/typescript/exercises/reverse-string/reverse-string.test.ts
trackler-2.2.1.111 tracks/typescript/exercises/reverse-string/reverse-string.test.ts