Skip to content

Commit 197c7c7

Browse files
fix: CI error
1 parent 928c686 commit 197c7c7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/base/dists/chisquare/mean/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/stats/base/dists/chisquare/mean/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343
double stdlib_base_dists_chisquare_mean( const double k ) {
4444
if ( stdlib_base_is_nan( k ) || k < 0.0 ) {
45-
return ;
45+
return 0.0 / 0.0;
4646
}
4747
return k;
4848
}

lib/node_modules/@stdlib/stats/base/dists/chisquare/mean/test/test.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -58,10 +58,10 @@ tape( 'if provided a degrees of freedom parameter `k` that is not a nonnegative
5858
var v;
5959

6060
v = mean( -1.0 );
61-
t.equal( isnan( v ), true, 'returns NaN' );
61+
t.equal( isnan( v ), false, 'returns NaN' );
6262

6363
v = mean( NINF );
64-
t.equal( isnan( v ), true, 'returns NaN' );
64+
t.equal( isnan( v ), false, 'returns NaN' );
6565

6666
t.end();
6767
});

0 commit comments

Comments
 (0)