Skip to content

Commit 887cdfe

Browse files
committed
Auto-generated commit
1 parent 53aec27 commit 887cdfe

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -38627,6 +38627,7 @@ A total of 50 people contributed to this release. Thank you to the following con
3862738627

3862838628
<details>
3862938629

38630+
- [`89c41ab`](https://github.com/stdlib-js/stdlib/commit/89c41ab21cf911bed3a67fbccebe6b129ddfc70a) - **test:** clean-up test messages and resolve lint errors _(by Athan Reines)_
3863038631
- [`f0df313`](https://github.com/stdlib-js/stdlib/commit/f0df313876ca0590d2a919d98c4411e4e51d50f0) - **feat:** added accessor protocol support to `stats/base/meanpn` [(#5908)](https://github.com/stdlib-js/stdlib/pull/5908) _(by Dhruvil Mehta, Athan Reines)_
3863138632
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
3863238633
- [`ef5a939`](https://github.com/stdlib-js/stdlib/commit/ef5a9397fb3e87e56d216b24dd316682e613caaf) - **test:** fix missing `opts` argument _(by Athan Reines)_

incr/stdev/test/test.js

+22-22
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ tape( 'main export is a function', function test( t ) {
3535
});
3636

3737
tape( 'the function returns an accumulator function', function test( t ) {
38-
t.equal( typeof incrstdev(), 'function', 'returns a function' );
38+
t.equal( typeof incrstdev(), 'function', 'returns expected value' );
3939
t.end();
4040
});
4141

4242
tape( 'the function returns an accumulator function (known mean)', function test( t ) {
43-
t.equal( typeof incrstdev( 3.0 ), 'function', 'returns a function' );
43+
t.equal( typeof incrstdev( 3.0 ), 'function', 'returns expected value' );
4444
t.end();
4545
});
4646

@@ -91,11 +91,11 @@ tape( 'the accumulator function incrementally computes a corrected sample standa
9191

9292
acc = incrstdev();
9393

94-
actual = new Array( data.length );
94+
actual = [];
9595
for ( i = 0; i < data.length; i++ ) {
96-
actual[ i ] = acc( data[ i ] );
96+
actual.push( acc( data[ i ] ) );
9797
}
98-
t.deepEqual( actual, expected, 'returns expected incremental results' );
98+
t.deepEqual( actual, expected, 'returns expected value' );
9999
t.end();
100100
});
101101

@@ -120,15 +120,15 @@ tape( 'the accumulator function incrementally computes a corrected sample standa
120120

121121
acc = incrstdev( 3.0 );
122122

123-
actual = new Array( data.length );
123+
actual = [];
124124
for ( i = 0; i < data.length; i++ ) {
125-
actual[ i ] = acc( data[ i ] );
125+
actual.push( acc( data[ i ] ) );
126126
}
127-
t.deepEqual( actual, expected, 'returns expected incremental results' );
127+
t.deepEqual( actual, expected, 'returns expected value' );
128128
t.end();
129129
});
130130

131-
tape( 'if not provided an input value, the accumulator function returns the current corrected sample sample deviation', function test( t ) {
131+
tape( 'if not provided an input value, the accumulator function returns the current corrected sample deviation', function test( t ) {
132132
var data;
133133
var acc;
134134
var i;
@@ -138,11 +138,11 @@ tape( 'if not provided an input value, the accumulator function returns the curr
138138
for ( i = 0; i < data.length; i++ ) {
139139
acc( data[ i ] );
140140
}
141-
t.equal( acc(), 1.0, 'returns the current accumulated corrected sample standard deviation' );
141+
t.equal( acc(), 1.0, 'returns expected value' );
142142
t.end();
143143
});
144144

145-
tape( 'if not provided an input value, the accumulator function returns the current corrected sample sample deviation (known mean)', function test( t ) {
145+
tape( 'if not provided an input value, the accumulator function returns the current corrected sample deviation (known mean)', function test( t ) {
146146
var data;
147147
var acc;
148148
var i;
@@ -152,7 +152,7 @@ tape( 'if not provided an input value, the accumulator function returns the curr
152152
for ( i = 0; i < data.length; i++ ) {
153153
acc( data[ i ] );
154154
}
155-
t.equal( acc(), sqrt( 0.6666666666666666 ), 'returns the current accumulated corrected sample standard deviation' );
155+
t.equal( acc(), sqrt( 0.6666666666666666 ), 'returns expected value' );
156156
t.end();
157157
});
158158

@@ -163,13 +163,13 @@ tape( 'the corrected sample standard deviation is `null` until at least 1 datum
163163
acc = incrstdev();
164164

165165
s = acc();
166-
t.equal( s, null, 'returns null' );
166+
t.equal( s, null, 'returns expected value' );
167167

168168
s = acc( 3.0 );
169-
t.notEqual( s, null, 'does not return null' );
169+
t.notEqual( s, null, 'returns expected value' );
170170

171171
s = acc();
172-
t.notEqual( s, null, 'does not return null' );
172+
t.notEqual( s, null, 'returns expected value' );
173173

174174
t.end();
175175
});
@@ -181,13 +181,13 @@ tape( 'the corrected sample standard deviation is `null` until at least 1 datum
181181
acc = incrstdev( 3.0 );
182182

183183
s = acc();
184-
t.equal( s, null, 'returns null' );
184+
t.equal( s, null, 'returns expected value' );
185185

186186
s = acc( 3.0 );
187-
t.notEqual( s, null, 'does not return null' );
187+
t.notEqual( s, null, 'returns expected value' );
188188

189189
s = acc();
190-
t.notEqual( s, null, 'does not return null' );
190+
t.notEqual( s, null, 'returns expected value' );
191191

192192
t.end();
193193
});
@@ -199,16 +199,16 @@ tape( 'the corrected sample standard deviation is `0` until at least 2 datums ha
199199
acc = incrstdev();
200200

201201
s = acc( 2.0 );
202-
t.equal( s, 0.0, 'returns 0' );
202+
t.equal( s, 0.0, 'returns expected value' );
203203

204204
s = acc();
205-
t.equal( s, 0.0, 'returns 0' );
205+
t.equal( s, 0.0, 'returns expected value' );
206206

207207
s = acc( 3.0 );
208-
t.notEqual( s, 0.0, 'does not return 0' );
208+
t.notEqual( s, 0.0, 'returns expected value' );
209209

210210
s = acc();
211-
t.notEqual( s, 0.0, 'does not return 0' );
211+
t.notEqual( s, 0.0, 'returns expected value' );
212212

213213
t.end();
214214
});

0 commit comments

Comments
 (0)