Skip to content

Commit 9bb3b9f

Browse files
committed
feat: add tests
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 181951d commit 9bb3b9f

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

lib/node_modules/@stdlib/lapack/base/dlarfb/test/test.ndarray.js

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable max-len, id-length */
20-
2119
'use strict';
2220

2321
// MODULES //
@@ -27,12 +25,6 @@ var Float64Array = require( '@stdlib/array/float64' );
2725
var dlarfb = require( './../lib/ndarray.js' );
2826

2927

30-
// FIXTURES //
31-
32-
var LEFT_TRANS_FORWARD_COL_ROW_MAJOR = require( './fixtures/left_trans_forward_col_row_major.json' );
33-
var LEFT_TRANS_FORWARD_COL_COL_MAJOR = require( './fixtures/left_trans_forward_col_col_major.json' );
34-
35-
3628
// TESTS //
3729

3830
tape( 'main export is a function', function test( t ) {
@@ -136,49 +128,3 @@ tape( 'the function throws an error if provided an invalid `storev`', function t
136128
};
137129
}
138130
});
139-
140-
tape( 'the function returns expected values for side = left, transpose, direct = forward, store = columns, (row-major)', function test( t ) {
141-
var expected;
142-
var work;
143-
var data;
144-
var out;
145-
var V;
146-
var T;
147-
var C;
148-
149-
data = LEFT_TRANS_FORWARD_COL_ROW_MAJOR;
150-
151-
expected = new Float64Array( data.C_out );
152-
V = new Float64Array( data.V );
153-
T = new Float64Array( data.T );
154-
C = new Float64Array( data.C );
155-
work = new Float64Array( data.work );
156-
157-
out = dlarfb( data.side, data.trans, data.direct, data.storev, data.M, data.N, data.K, V, data.strideV1, data.strideV2, data.offsetV, T, data.strideT1, data.strideT2, data.offsetT, C, data.strideC1, data.strideC2, data.offsetC, work, data.strideWork1, data.strideWork2, data.offsetWork );
158-
t.strictEqual( out, C, 'returns expected value' );
159-
t.deepEqual( out, expected, 'returns expected value' );
160-
t.end();
161-
});
162-
163-
tape( 'the function returns expected values for side = left, transpose, direct = forward, store = columns, (column-major)', function test( t ) {
164-
var expected;
165-
var work;
166-
var data;
167-
var out;
168-
var V;
169-
var T;
170-
var C;
171-
172-
data = LEFT_TRANS_FORWARD_COL_COL_MAJOR;
173-
174-
expected = new Float64Array( data.C_out );
175-
V = new Float64Array( data.V );
176-
T = new Float64Array( data.T );
177-
C = new Float64Array( data.C );
178-
work = new Float64Array( data.work );
179-
180-
out = dlarfb( data.side, data.trans, data.direct, data.storev, data.M, data.N, data.K, V, data.strideV1, data.strideV2, data.offsetV, T, data.strideT1, data.strideT2, data.offsetT, C, data.strideC1, data.strideC2, data.offsetC, work, data.strideWork1, data.strideWork2, data.offsetWork );
181-
t.strictEqual( out, C, 'returns expected value' );
182-
t.deepEqual( out, expected, 'returns expected value' );
183-
t.end();
184-
});

0 commit comments

Comments
 (0)