Skip to content

Commit fb7029a

Browse files
committed
Use string utility
1 parent 95bd536 commit fb7029a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/nlp/tokenize/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
var bench = require( '@stdlib/bench' );
66
var isArray = require( '@stdlib/assert/is-array' );
7+
var fromCodePoint = require( '@stdlib/string/from-code-point' );
78
var pkg = require( './../package.json' ).name;
89
var tokenize = require( './../lib' );
910

@@ -17,7 +18,7 @@ bench( pkg, function benchmark( b ) {
1718

1819
b.tic();
1920
for ( i = 0; i < b.iterations; i++ ) {
20-
str = 'To be, or not to be, that is the question' + String.fromCharCode( i%126 );
21+
str = 'To be, or not to be, that is the question' + fromCodePoint( i%126 );
2122
out = tokenize( str );
2223
if ( !isArray( out ) ) {
2324
b.fail( 'should return an array' );

0 commit comments

Comments
 (0)