'use strict';

var afinn, assert;

afinn = require('./');
assert = require('assert');

describe('afinn-111()', function () {
    it('should be of type `object`', function () {
        assert(typeof afinn === 'object');
    });
});

describe('...all values', function () {
    it('should be integers', function () {
        var word;

        for (word in afinn) {
            assert(typeof afinn[word] === 'number');
            assert(Math.floor(afinn[word]) === afinn[word]);
        }
    });

    it('should be between (including), -5 and 5', function () {
        var word;

        for (word in afinn) {
            assert(afinn[word] >= -5);
            assert(afinn[word] <= 5);
        }
    });
});

describe('...all keys', function () {
    it('should be lowercase', function () {
        var word;

        for (word in afinn) {
            assert(word.toLowerCase() === word);
        }
    });
});

@@ -8,16 +8,42 @@
 rict';%0A%0A
+/**%0A * Dependencies.%0A */%0A%0A
 var afin
@@ -44,16 +44,20 @@
 r afinn,
+%0A   
  assert;
@@ -106,24 +106,43 @@
 'assert');%0A%0A
+/**%0A * Tests.%0A */%0A%0A
 describe('af
@@ -455,24 +455,25 @@
  'number');%0A
+%0A
             

Refactor test