Skip to content

Commit 89c41ab

Browse files
committed
test: clean-up test messages and resolve lint errors
--- 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 998b3ba commit 89c41ab

File tree

1 file changed

+22
-22
lines changed
  • lib/node_modules/@stdlib/stats/incr/stdev/test

1 file changed

+22
-22
lines changed

lib/node_modules/@stdlib/stats/incr/stdev/test/test.js

Lines changed: 22 additions & 22 deletions
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)