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.78 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.77 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.76 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.75 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.74 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.73 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.72 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.71 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.70 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.69 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.68 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.67 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.66 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.65 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.64 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.63 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.62 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.61 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.60 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.59 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js