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.180 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.179 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.178 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.177 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.176 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.175 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.174 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.173 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.172 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.171 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.170 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.169 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.167 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.166 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.165 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.164 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.163 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.162 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.161 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.160 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js