Sha256: 0b944bf716b95b664a3b9f2d289c35e79c1e1337b58ef5108205392572994917

Contents?: true

Size: 865 Bytes

Versions: 100

Compression:

Stored size: 865 Bytes

Contents

var reverseString = require('./reverse-string');

describe('ReverseString', function () {
  it('empty string', function () {
    var expected = '';
    var actual = reverseString('');
    expect(actual).toEqual(expected);
  });

  xit('a word', function () {
    var expected = 'tobor';
    var actual = reverseString('robot');
    expect(actual).toEqual(expected);
  });

  xit('a capitalized word', function () {
    var expected = 'nemaR';
    var actual = reverseString('Ramen');
    expect(actual).toEqual(expected);
  });

  xit('a sentence with punctuation', function () {
    var expected = '!yrgnuh ma I';
    var actual = reverseString('I am hungry!');
    expect(actual).toEqual(expected);
  });

  xit('a palindrome', function () {
    var expected = 'racecar';
    var actual = reverseString('racecar');
    expect(actual).toEqual(expected);
  });
});

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.138 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.137 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.136 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.135 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.134 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.133 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.132 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.131 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.130 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.129 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.128 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.127 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.126 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.125 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.124 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.123 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.122 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.121 tracks/javascript/exercises/reverse-string/reverse-string.spec.js
trackler-2.2.1.120 tracks/javascript/exercises/reverse-string/reverse-string.spec.js