Skip to content

Commit 892b6e1

Browse files
committed
Update tests to check for assign method properties
1 parent 141b5ee commit 892b6e1

File tree

1 file changed

+26
-6
lines changed
  • lib/node_modules/@stdlib/math/special/abs/test

1 file changed

+26
-6
lines changed

lib/node_modules/@stdlib/math/special/abs/test/test.js

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ tape( 'if a native implementation is not available, the main export is a JavaScr
8080
}
8181
});
8282

83-
tape( 'attached to the main export is a method for assigning results to a provided output array', function test( t ) {
84-
t.strictEqual( hasProp( fcn, 'assign' ), true, 'has property' );
85-
t.strictEqual( typeof fcn.assign, 'function', 'has method' );
86-
t.end();
87-
});
88-
8983
tape( 'attached to the main export is a property for retrieving the number of input and output arrays', function test( t ) {
9084
t.strictEqual( fcn.nargs, meta.nargs, 'returns expected value' );
9185
t.end();
@@ -105,3 +99,29 @@ tape( 'attached to the main export is a property for retrieving the list of supp
10599
t.deepEqual( fcn.types, dtypes2signatures( types, meta.nin, meta.nout ), 'returns expected value' );
106100
t.end();
107101
});
102+
103+
tape( 'attached to the main export is an `assign` method for assigning results to a provided output array', function test( t ) {
104+
t.strictEqual( hasProp( fcn, 'assign' ), true, 'has property' );
105+
t.strictEqual( typeof fcn.assign, 'function', 'has method' );
106+
t.end();
107+
});
108+
109+
tape( 'attached to the `assign` method is a property for retrieving the number of input and output arrays', function test( t ) {
110+
t.strictEqual( fcn.assign.nargs, meta.nargs, 'returns expected value' );
111+
t.end();
112+
});
113+
114+
tape( 'attached to the `assign` method is a property for retrieving the number of input arrays', function test( t ) {
115+
t.strictEqual( fcn.assign.nin, meta.nin, 'returns expected value' );
116+
t.end();
117+
});
118+
119+
tape( 'attached to the `assign` method is a property for retrieving the number of output arrays', function test( t ) {
120+
t.strictEqual( fcn.assign.nout, meta.nout, 'returns expected value' );
121+
t.end();
122+
});
123+
124+
tape( 'attached to the `assign` method is a property for retrieving the list of supported array data types', function test( t ) {
125+
t.deepEqual( fcn.assign.types, dtypes2signatures( types, meta.nin, meta.nout ), 'returns expected value' );
126+
t.end();
127+
});

0 commit comments

Comments
 (0)