We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95bd536 commit fb7029aCopy full SHA for fb7029a
lib/node_modules/@stdlib/nlp/tokenize/benchmark/benchmark.js
@@ -4,6 +4,7 @@
4
5
var bench = require( '@stdlib/bench' );
6
var isArray = require( '@stdlib/assert/is-array' );
7
+var fromCodePoint = require( '@stdlib/string/from-code-point' );
8
var pkg = require( './../package.json' ).name;
9
var tokenize = require( './../lib' );
10
@@ -17,7 +18,7 @@ bench( pkg, function benchmark( b ) {
17
18
19
b.tic();
20
for ( i = 0; i < b.iterations; i++ ) {
- 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 );
22
out = tokenize( str );
23
if ( !isArray( out ) ) {
24
b.fail( 'should return an array' );
0 commit comments