Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 28, 2024
1 parent 3e4525d commit 9a69135
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions strided/exponential/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var isUint32Array = require( '@stdlib/assert/is-uint32array' );
var random = require( './../lib' );


Expand All @@ -41,3 +42,33 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
t.strictEqual( typeof random.factory, 'function', 'method is a function' );
t.end();
});

tape( 'attached to the main export is the underlying PRNG', function test( t ) {
t.equal( typeof random.PRNG, 'function', 'has property' );
t.end();
});

tape( 'attached to the main export is the generator seed', function test( t ) {
t.equal( isUint32Array( random.seed ), true, 'has property' );
t.end();
});

tape( 'attached to the main export is the generator seed length', function test( t ) {
t.equal( typeof random.seedLength, 'number', 'has property' );
t.end();
});

tape( 'attached to the main export is the generator state', function test( t ) {
t.equal( isUint32Array( random.state ), true, 'has property' );
t.end();
});

tape( 'attached to the main export is the generator state length', function test( t ) {
t.equal( typeof random.stateLength, 'number', 'has property' );
t.end();
});

tape( 'attached to the main export is the generator state size', function test( t ) {
t.equal( typeof random.byteLength, 'number', 'has property' );
t.end();
});

0 comments on commit 9a69135

Please sign in to comment.