@@ -34,32 +34,42 @@ tape( 'main export is a function', function test( t ) {
34
34
} ) ;
35
35
36
36
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' ) ;
38
38
t . end ( ) ;
39
39
} ) ;
40
40
41
41
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' ) ;
43
43
t . end ( ) ;
44
44
} ) ;
45
45
46
46
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' ) ;
48
48
t . end ( ) ;
49
49
} ) ;
50
50
51
51
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' ) ;
53
58
t . end ( ) ;
54
59
} ) ;
55
60
56
61
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' ) ;
58
68
t . end ( ) ;
59
69
} ) ;
60
70
61
71
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' ) ;
63
73
t . end ( ) ;
64
74
} ) ;
65
75
0 commit comments