var Roman = require('../../libraries/Roman');

describe('The `Roman` numeral conversion library', function () {
    describe('when using the `getIntegerToRoman` method', function() {
        it('should return `123` when given `CXXIII`', function() {
            expect(Roman.getIntegerToRoman('CXXIII')).toBe(123);
        });

        it('should return `3999` when given `MMMCMXCIX`', function() {
            expect(Roman.getIntegerToRoman('MMMCMXCIX')).toBe(3999);
        });

        it('should return `0` when given an empty string', function() {
            expect(Roman.getIntegerToRoman('')).toBe(0);
        });
    });

    describe('when using the `getRomanToInteger` method', function() {
        it('should return `CXXIII` when given `123`', function() {
            expect(Roman.getRomanToInteger(123)).toBe('CXXIII');
        });

        it('should return `MMMCMXCIX` when given `3999`', function() {
            expect(Roman.getRomanToInteger(3999)).toBe('MMMCMXCIX');
        });

        it('should return an empty string when given `0`', function() {
            expect(Roman.getRomanToInteger(0)).toBe('');
        });
    });
});

@@ -274,26 +274,28 @@
 n.getInteger
-To
+From
 Roman('CXXII
@@ -425,26 +425,28 @@
 n.getInteger
-To
+From
 Roman('MMMCM
@@ -581,26 +581,28 @@
 n.getInteger
-To
+From
 Roman('')).t
@@ -793,34 +793,36 @@
 t(Roman.getRoman
-To
+From
 Integer(123)).to
@@ -944,34 +944,36 @@
 t(Roman.getRoman
-To
+From
 Integer(3999)).t
@@ -1104,26 +1104,28 @@
 man.getRoman
-To
+From
 Integer(0)).

Update RomanLibrary-spec.js