<commit_before>var assert = require('assert');
var isEmptyString = require('../index.js');

describe('isEmptyString', function() {
    it('should be referenced correctly', function() {
        assert.notEqual(typeof isEmptyString, 'undefined');
    }) 
    
    it('returns false for empty string', function() {
        assert.equal(isEmptyString(''), false);
    });
    
    it('returns false for spaces', function() {
       assert.equal(isEmptyString('      '), false); 
    });
    
    it('returns false for tabs', function() {
        assert.equal(isEmptyString('\t\t\t\t\t\t\t'), false);
    });
    
    it('returns false for newline characters', function() {
       assert.equal(isEmptyString('\r\n\r\n'), false); 
    });
    
    it ('returns false for non-breaking space', function() {
        assert.equal(isEmptyString('\xa0\xa0\xa0\xa0'), false);
    })
    
    it('returns false for a mixed bag', function() {
       assert.equal(isEmptyString('        \t\t\t\n\n\n \n\r\r \r\r \r\t \t\t\t    '), false); 
    });
    
    it('returns false for null', function() {
        assert.equal(isEmptyString(null), false);
    });
    
    it('returns false for undefined', function() {
        assert.equal(isEmptyString(undefined), false);
    });
    
    it('returns false for a NaN', function() {
        assert.equal(isEmptyString(NaN), false);
    });
    
    it('returns false for a Number', function() {
       assert.equal(isEmptyString(0), false); 
    });
    
    it('returns false for an empty array', function() {
        assert.equal(isEmptyString([]), false);
    });
    
    it('returns false for an empty object', function() {
       assert.equal(isEmptyString({}), false); 
    });
    
    it('returns false for a boolean', function() {
       assert.equal(isEmptyString(true), false); 
    });
    
    it('returns true for a non-whitespace string', function() {
       assert.equal(isEmptyString("_"), true); 
    });
});<commit_msg>added an extra test for increased sanity<commit_after>var assert = require('assert');
var isEmptyString = require('../index.js');

describe('isEmptyString', function() {
    it('should be referenced correctly', function() {
        assert.notEqual(typeof isEmptyString, 'undefined');
    }) 
    
    it('returns false for empty string', function() {
        assert.equal(isEmptyString(''), false);
    });
    
    it('returns false for spaces', function() {
       assert.equal(isEmptyString('      '), false); 
    });
    
    it('returns false for tabs', function() {
        assert.equal(isEmptyString('\t\t\t\t\t\t\t'), false);
    });
    
    it('returns false for newline characters', function() {
       assert.equal(isEmptyString('\r\n\r\n'), false); 
    });
    
    it ('returns false for non-breaking space', function() {
        assert.equal(isEmptyString('\xa0\xa0\xa0\xa0'), false);
    })
    
    it('returns false for a mixed bag', function() {
       assert.equal(isEmptyString('        \t\t\t\n\n\n \n\r\r \r\r \r\t \t\t\t    '), false); 
    });
    
    it('returns false for null', function() {
        assert.equal(isEmptyString(null), false);
    });
    
    it('returns false for undefined', function() {
        assert.equal(isEmptyString(undefined), false);
    });
    
    it('returns false for a NaN', function() {
        assert.equal(isEmptyString(NaN), false);
    });
    
    it('returns false for a Number', function() {
       assert.equal(isEmptyString(0), false); 
    });
    
    it('returns false for an empty array', function() {
        assert.equal(isEmptyString([]), false);
    });
    
    it('returns false for an empty object', function() {
       assert.equal(isEmptyString({}), false); 
    });
    
    it('returns false for a boolean', function() {
       assert.equal(isEmptyString(true), false); 
    });
    
    it('returns true for a non-whitespace string', function() {
       assert.equal(isEmptyString("_"), true); 
    });
    
    it('returns true for a sparse but non-empty string', function() {
       assert.equal(isEmptyString('                \t\t\t\t\t\r\r\r\r\r\r\n\n\n\xa0\xa0.\t\t\t\t            '), true); 
    });
});
{'fraction_non_alphanumeric': 0.16970715314450313, 'fraction_numerical': 0.0028804608737397984, 'mean_word_length': 2.507575757575758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6175673', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1229, 'n_words': 286}