Skip to content

Commit 9ad6153

Browse files
committed
test: more test coverage
--- 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 9f1e284 commit 9ad6153

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

lib/node_modules/@stdlib/lapack/base/dgtts2/test/test.dgtts2.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,31 @@ tape( 'the function throws an error if provided an eleventh argument which is no
140140
}
141141
});
142142

143+
tape( 'the function returns the input array unchanged if N is zero', function test( t ) {
144+
var IPIV;
145+
var data;
146+
var DU2;
147+
var DU;
148+
var DL;
149+
var D;
150+
var B;
151+
var X;
152+
153+
data = ROW_MAJOR_NO_OFFSET_NO_TRANS;
154+
155+
DL = new Float64Array( data.DL );
156+
D = new Float64Array( data.D );
157+
DU = new Float64Array( data.DU );
158+
DU2 = new Float64Array( data.DU2 );
159+
IPIV = new Int32Array( data.IPIV );
160+
B = new Float64Array( data.B );
161+
162+
X = dgtts2( data.order, data.itrans, 0, data.nrhs, DL, D, DU, DU2, IPIV, B, data.LDB );
163+
t.deepEqual( B, X );
164+
165+
t.end();
166+
});
167+
143168
tape( 'the function solves A * X = B (row-major)', function test( t ) {
144169
var expectedX;
145170
var IPIV;

0 commit comments

Comments
 (0)