Sha256: b408c667a10e8767a5244070db14447f19bb41124d640775ada5ab32a428a193

Contents?: true

Size: 1.53 KB

Versions: 141

Compression:

Stored size: 1.53 KB

Contents

var toRoman = require('./roman-numerals');

describe('toRoman()', function () {
  it('converts 1', function () {
    expect(toRoman(1)).toEqual('I');
  });

  xit('converts 2', function () {
    expect(toRoman(2)).toEqual('II');
  });

  xit('converts 3', function () {
    expect(toRoman(3)).toEqual('III');
  });

  xit('converts 4', function () {
    expect(toRoman(4)).toEqual('IV');
  });

  xit('converts 5', function () {
    expect(toRoman(5)).toEqual('V');
  });

  xit('converts 6', function () {
    expect(toRoman(6)).toEqual('VI');
  });

  xit('converts 9', function () {
    expect(toRoman(9)).toEqual('IX');
  });

  xit('converts 27', function () {
    expect(toRoman(27)).toEqual('XXVII');
  });

  xit('converts 48', function () {
    expect(toRoman(48)).toEqual('XLVIII');
  });

  xit('converts 59', function () {
    expect(toRoman(59)).toEqual('LIX');
  });

  xit('converts 93', function () {
    expect(toRoman(93)).toEqual('XCIII');
  });

  xit('converts 141', function () {
    expect(toRoman(141)).toEqual('CXLI');
  });

  xit('converts 163', function () {
    expect(toRoman(163)).toEqual('CLXIII');
  });

  xit('converts 402', function () {
    expect(toRoman(402)).toEqual('CDII');
  });

  xit('converts 575', function () {
    expect(toRoman(575)).toEqual('DLXXV');
  });

  xit('converts 911', function () {
    expect(toRoman(911)).toEqual('CMXI');
  });

  xit('converts 1024', function () {
    expect(toRoman(1024)).toEqual('MXXIV');
  });

  xit('converts 3000', function () {
    expect(toRoman(3000)).toEqual('MMM');
  });
});

Version data entries

141 entries across 141 versions & 1 rubygems

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