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