Skip to content

Commit 2048aa3

Browse files
committed
Update tests
1 parent 3c5f8bd commit 2048aa3

File tree

1 file changed

+16
-6
lines changed
  • lib/node_modules/@stdlib/random/base/normal/test

1 file changed

+16
-6
lines changed

lib/node_modules/@stdlib/random/base/normal/test/test.js

+16-6
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,42 @@ tape( 'main export is a function', function test( t ) {
3434
});
3535

3636
tape( 'attached to the main export is a method to generate pseudorandom number generators', function test( t ) {
37-
t.equal( typeof normal.factory, 'function', 'has `factory` method' );
37+
t.equal( typeof normal.factory, 'function', 'has method' );
3838
t.end();
3939
});
4040

4141
tape( 'attached to the main export is the generator name', function test( t ) {
42-
t.equal( normal.NAME, 'normal', 'has `NAME` property' );
42+
t.equal( normal.NAME, 'normal', 'has property' );
4343
t.end();
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof normal.PRNG, 'function', 'has `PRNG` property' );
47+
t.equal( typeof normal.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( normal.seed ), true, 'has `seed` property' );
52+
t.equal( isUint32Array( normal.seed ), true, 'has property' );
53+
t.end();
54+
});
55+
56+
tape( 'attached to the main export is the generator seed length', function test( t ) {
57+
t.equal( typeof normal.seedLength, 'number', 'has property' );
5358
t.end();
5459
});
5560

5661
tape( 'attached to the main export is the generator state', function test( t ) {
57-
t.equal( isUint32Array( normal.state ), true, 'has `state` property' );
62+
t.equal( isUint32Array( normal.state ), true, 'has property' );
63+
t.end();
64+
});
65+
66+
tape( 'attached to the main export is the generator state length', function test( t ) {
67+
t.equal( typeof normal.stateLength, 'number', 'has property' );
5868
t.end();
5969
});
6070

6171
tape( 'attached to the main export is the generator state size', function test( t ) {
62-
t.equal( typeof normal.byteLength, 'number', 'has `byteLength` property' );
72+
t.equal( typeof normal.byteLength, 'number', 'has property' );
6373
t.end();
6474
});
6575

0 commit comments

Comments
 (0)