<commit_before>'use strict';

// MODULES //

var tape = require( 'tape' );
var truncate = require( '@stdlib/math/base/special/truncate' );
var randu = require( '@stdlib/math/base/random/randu' );
var PINF = require( '@stdlib/math/constants/float64-pinf' );
var NINF = require( '@stdlib/math/constants/float64-ninf' );
var isInteger = require( './../lib' );


// TESTS //

tape( 'main export is a function', function test( t ) {
	t.ok( true, __filename );
	t.equal( typeof isInteger, 'function', 'main export is a function' );
	t.end();
});

tape( 'function returns `true` if provided an integer', function test( t ) {
	var i;
	for ( i = -50; i < 51; i++ ) {
		t.equal( isInteger( i ), true, 'returns true when provided '+i );
	}
	t.end();
});

tape( 'function returns `false` if not provided an integer', function test( t ) {
	var v;
	var i;
	for ( i = 0; i < 100; i++ ) {
		v = randu()*100.0 - 50.0;
		if ( truncate(v) !== v ) {
			t.equal( isInteger( v ), false, 'returns false when provided '+v );
		}
	}
	t.end();
});

tape( 'function returns `false` if provided `NaN`', function test( t ) {
	t.equal( isInteger( NaN ), false, 'returns false' );
	t.end();
});

tape( 'WARNING: function returns `true` if provided `+infinity`', function test( t ) {
	t.equal( isInteger( PINF ), true, 'returns true' );
	t.end();
});

tape( 'WARNING: function returns `true` if provided `-infinity`', function test( t ) {
	t.equal( isInteger( NINF ), true, 'returns true' );
	t.end();
});
<commit_msg>Fix lint errors<commit_after>'use strict';

// MODULES //

var tape = require( 'tape' );
var truncate = require( '@stdlib/math/base/special/truncate' );
var randu = require( '@stdlib/math/base/random/randu' );
var PINF = require( '@stdlib/math/constants/float64-pinf' );
var NINF = require( '@stdlib/math/constants/float64-ninf' );
var isInteger = require( './../lib' );


// TESTS //

tape( 'main export is a function', function test( t ) {
	t.ok( true, __filename );
	t.equal( typeof isInteger, 'function', 'main export is a function' );
	t.end();
});

tape( 'function returns `true` if provided an integer', function test( t ) {
	var i;
	for ( i = -50; i < 51; i++ ) {
		t.equal( isInteger( i ), true, 'returns true when provided '+i );
	}
	t.end();
});

tape( 'function returns `false` if not provided an integer', function test( t ) {
	var v;
	var i;
	for ( i = 0; i < 100; i++ ) {
		v = ( randu()*100.0 ) - 50.0;
		if ( truncate(v) !== v ) {
			t.equal( isInteger( v ), false, 'returns false when provided '+v );
		}
	}
	t.end();
});

tape( 'function returns `false` if provided `NaN`', function test( t ) {
	t.equal( isInteger( NaN ), false, 'returns false' );
	t.end();
});

tape( 'WARNING: function returns `true` if provided `+infinity`', function test( t ) {
	t.equal( isInteger( PINF ), true, 'returns true' );
	t.end();
});

tape( 'WARNING: function returns `true` if provided `-infinity`', function test( t ) {
	t.equal( isInteger( NINF ), true, 'returns true' );
	t.end();
});

{'fraction_non_alphanumeric': 0.19341840161182, 'fraction_numerical': 0.012760241773002015, 'mean_word_length': 3.6043276661514683, 'pattern_counts': {'":': 0, '<': 7, '<?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': '257235', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1075, 'n_words': 342}