'use strict';

// MODULES //

var bench = require( '@stdlib/bench' );
var pkg = require( './../package.json' ).name;
var isStringArray = require( '@stdlib/assert/is-string-array' ).primitives;
var stopwords = require( './../lib/savoy_stopwords_fin.js' );


// MAIN //

bench( pkg+'::non_browser', function benchmark( b ) {
	var data;
	var i;
	b.tic();
	for ( i = 0; i < b.iterations; i++ ) {
		data = stopwords();
		if ( data.length === 0 ) {
			b.fail( 'should have a length greater than 0' );
		}
	}
	b.toc();
	if ( !isStringArray( data ) ) {
		b.fail( 'should return a string array' );
	}
	b.pass( 'benchmark finished' );
	b.end();
});

'use strict';

// MODULES //

var bench = require( '@stdlib/bench' );
var pkg = require( './../package.json' ).name;
var isStringArray = require( '@stdlib/assert/is-string-array' ).primitives;
var stopwords = require( './../lib/savoy_stopwords_por.js' );


// MAIN //

bench( pkg+'::non_browser', function benchmark( b ) {
	var data;
	var i;
	b.tic();
	for ( i = 0; i < b.iterations; i++ ) {
		data = stopwords();
		if ( data.length === 0 ) {
			b.fail( 'should have a length greater than 0' );
		}
	}
	b.toc();
	if ( !isStringArray( data ) ) {
		b.fail( 'should return a string array' );
	}
	b.pass( 'benchmark finished' );
	b.end();
});

Fix require path