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.58 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.57 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.56 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.55 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.54 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.53 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.52 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.51 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.50 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.49 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.48 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.47 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.46 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.45 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.44 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.43 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.42 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.41 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.40 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js
trackler-2.2.1.39 tracks/javascript/exercises/roman-numerals/roman-numerals.spec.js