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.98 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.97 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.96 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.95 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.94 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.93 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.92 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.91 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.90 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.89 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.88 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.87 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.86 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.85 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.84 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.83 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.82 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.81 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.80 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.79 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js