'use strict';

// MODULES //

var bench = require( '@stdlib/bench' );
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var reverseString = require( './../lib' );


// MAIN //

bench( pkg, function benchmark( b ) {
	var str;
	var out;
	var i;

	b.tic();
	for ( i = 0; i < b.iterations; i++ ) {
		str = String.fromCharCode( i%126 ) + 'eep boop foo bar hip hop tip top';
		out = reverseString( str );
		if ( !isString( out ) ) {
			b.fail( 'should return a string' );
		}
	}
	b.toc();
	if ( !isString( out ) ) {
		b.fail( 'should return a string' );
	}
	b.pass( 'benchmark finished' );
	b.end();
});

@@ -129,16 +129,81 @@
 mitive;%0A
+var fromCodePoint = require( '@stdlib/string/from-code-point' );%0A
 var pkg 
@@ -427,27 +427,21 @@
 r = 
-String.fromCharCode
+fromCodePoint
 ( i%25

Use string utility