Skip to content

Commit ff06130

Browse files
committed
test: update test messages
--- 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: passed ---
1 parent 64bdefb commit ff06130

File tree

3 files changed

+63
-63
lines changed

3 files changed

+63
-63
lines changed

lib/node_modules/@stdlib/stats/base/dists/hypergeometric/pmf/test/test.factory.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,35 +54,35 @@ tape( 'if provided `NaN` for any parameter, the created function returns `NaN`',
5454

5555
pmf = factory( 40, 20, 10 );
5656
y = pmf( NaN );
57-
t.equal( isnan( y ), true, 'returns NaN' );
57+
t.equal( isnan( y ), true, 'returns expected value' );
5858

5959
pmf = factory( NaN, 20, 10 );
6060
y = pmf( 0.0 );
61-
t.equal( isnan( y ), true, 'returns NaN' );
61+
t.equal( isnan( y ), true, 'returns expected value' );
6262

6363
pmf = factory( 40, NaN, 10 );
6464
y = pmf( 0.0 );
65-
t.equal( isnan( y ), true, 'returns NaN' );
65+
t.equal( isnan( y ), true, 'returns expected value' );
6666

6767
pmf = factory( 40, 10, NaN );
6868
y = pmf( 0.0 );
69-
t.equal( isnan( y ), true, 'returns NaN' );
69+
t.equal( isnan( y ), true, 'returns expected value' );
7070

7171
pmf = factory( NaN, NaN, 10 );
7272
y = pmf( 0.0 );
73-
t.equal( isnan( y ), true, 'returns NaN' );
73+
t.equal( isnan( y ), true, 'returns expected value' );
7474

7575
pmf = factory( 40, NaN, NaN );
7676
y = pmf( 0.0 );
77-
t.equal( isnan( y ), true, 'returns NaN' );
77+
t.equal( isnan( y ), true, 'returns expected value' );
7878

7979
pmf = factory( NaN, 20, NaN );
8080
y = pmf( 0.0 );
81-
t.equal( isnan( y ), true, 'returns NaN' );
81+
t.equal( isnan( y ), true, 'returns expected value' );
8282

8383
pmf = factory( NaN, NaN, NaN );
8484
y = pmf( NaN );
85-
t.equal( isnan( y ), true, 'returns NaN' );
85+
t.equal( isnan( y ), true, 'returns expected value' );
8686

8787
t.end();
8888
});
@@ -93,13 +93,13 @@ tape( 'if provided valid parameters, the function returns a function which retur
9393

9494
pmf = factory( 40, 20, 10 );
9595
y = pmf( PINF );
96-
t.equal( y, 0.0, 'returns 0' );
96+
t.equal( y, 0.0, 'returns expected value' );
9797

9898
y = pmf( 12.0 );
99-
t.equal( y, 0.0, 'returns 0' );
99+
t.equal( y, 0.0, 'returns expected value' );
100100

101101
y = pmf( 11.0 );
102-
t.equal( y, 0.0, 'returns 0' );
102+
t.equal( y, 0.0, 'returns expected value' );
103103

104104
t.end();
105105
});
@@ -111,10 +111,10 @@ tape( 'if provided valid parameters, the function returns a function which retur
111111
pmf = factory( 40, 30, 15 );
112112

113113
y = pmf( 1.0 );
114-
t.equal( y, 0.0, 'returns 0' );
114+
t.equal( y, 0.0, 'returns expected value' );
115115

116116
y = pmf( 4.0 );
117-
t.equal( y, 0.0, 'returns 0' );
117+
t.equal( y, 0.0, 'returns expected value' );
118118

119119
t.end();
120120
});
@@ -126,22 +126,22 @@ tape( 'if provided an `N` which is not a nonnegative integer, the created functi
126126
pmf = factory( 20.5, 20, 10 );
127127

128128
y = pmf( 2.0 );
129-
t.equal( isnan( y ), true, 'returns NaN' );
129+
t.equal( isnan( y ), true, 'returns expected value' );
130130

131131
y = pmf( 0.0 );
132-
t.equal( isnan( y ), true, 'returns NaN' );
132+
t.equal( isnan( y ), true, 'returns expected value' );
133133

134134
pmf = factory( -10, 20, 10 );
135135
y = pmf( 2.0 );
136-
t.equal( isnan( y ), true, 'returns NaN' );
136+
t.equal( isnan( y ), true, 'returns expected value' );
137137

138138
pmf = factory( PINF, 20, 10 );
139139
y = pmf( 2.0 );
140-
t.equal( isnan( y ), true, 'returns NaN' );
140+
t.equal( isnan( y ), true, 'returns expected value' );
141141

142142
pmf = factory( NINF, 20, 10 );
143143
y = pmf( 2.0 );
144-
t.equal( isnan( y ), true, 'returns NaN' );
144+
t.equal( isnan( y ), true, 'returns expected value' );
145145

146146
t.end();
147147
});
@@ -153,22 +153,22 @@ tape( 'if provided a `K` which is not a nonnegative integer, the created functio
153153
pmf = factory( 40, 20.5, 10 );
154154

155155
y = pmf( 2.0 );
156-
t.equal( isnan( y ), true, 'returns NaN' );
156+
t.equal( isnan( y ), true, 'returns expected value' );
157157

158158
y = pmf( 0.0 );
159-
t.equal( isnan( y ), true, 'returns NaN' );
159+
t.equal( isnan( y ), true, 'returns expected value' );
160160

161161
pmf = factory( 40, -10, 10 );
162162
y = pmf( 2.0 );
163-
t.equal( isnan( y ), true, 'returns NaN' );
163+
t.equal( isnan( y ), true, 'returns expected value' );
164164

165165
pmf = factory( 40, PINF, 10 );
166166
y = pmf( 2.0 );
167-
t.equal( isnan( y ), true, 'returns NaN' );
167+
t.equal( isnan( y ), true, 'returns expected value' );
168168

169169
pmf = factory( 40, NINF, 10 );
170170
y = pmf( 2.0 );
171-
t.equal( isnan( y ), true, 'returns NaN' );
171+
t.equal( isnan( y ), true, 'returns expected value' );
172172

173173
t.end();
174174
});
@@ -180,22 +180,22 @@ tape( 'if provided an `n` which is not a nonnegative integer, the created functi
180180
pmf = factory( 40, 20, 10.5 );
181181

182182
y = pmf( 2.0 );
183-
t.equal( isnan( y ), true, 'returns NaN' );
183+
t.equal( isnan( y ), true, 'returns expected value' );
184184

185185
y = pmf( 0.0 );
186-
t.equal( isnan( y ), true, 'returns NaN' );
186+
t.equal( isnan( y ), true, 'returns expected value' );
187187

188188
pmf = factory( 40, 20, -10 );
189189
y = pmf( 2.0 );
190-
t.equal( isnan( y ), true, 'returns NaN' );
190+
t.equal( isnan( y ), true, 'returns expected value' );
191191

192192
pmf = factory( 30, 20, PINF );
193193
y = pmf( 2.0 );
194-
t.equal( isnan( y ), true, 'returns NaN' );
194+
t.equal( isnan( y ), true, 'returns expected value' );
195195

196196
pmf = factory( 30, 20, NINF );
197197
y = pmf( 2.0 );
198-
t.equal( isnan( y ), true, 'returns NaN' );
198+
t.equal( isnan( y ), true, 'returns expected value' );
199199

200200
t.end();
201201
});

lib/node_modules/@stdlib/stats/base/dists/hypergeometric/pmf/test/test.native.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ tape( 'main export is a function', opts, function test( t ) {
5151

5252
tape( 'if provided an integer `x` greater than `min( n, K )`, the function returns `0` (provided all parameters are valid)', opts, function test( t ) {
5353
var y = pmf( 11.0, 20, 20, 10 );
54-
t.equal( y, 0.0, 'returns 0' );
54+
t.equal( y, 0.0, 'returns expected value' );
5555

5656
y = pmf( 100.0, 20, 20, 10 );
57-
t.equal( y, 0.0, 'returns 0' );
57+
t.equal( y, 0.0, 'returns expected value' );
5858

5959
t.end();
6060
});
6161

6262
tape( 'if provided an integer for `x` smaller than `max( 0, n + K - N )`, the function returns `0`', opts, function test( t ) {
6363
var y = pmf( -1.0, 40, 20, 10 );
64-
t.equal( y, 0.0, 'returns 0' );
64+
t.equal( y, 0.0, 'returns expected value' );
6565

6666
y = pmf( -2.0, 30, 20, 20 );
67-
t.equal( y, 0.0, 'returns 0' );
67+
t.equal( y, 0.0, 'returns expected value' );
6868

6969
t.end();
7070
});
@@ -73,10 +73,10 @@ tape( 'if provided an `N` which is not a nonnegative integer, the function retur
7373
var y;
7474

7575
y = pmf( 2.0, -20, 3, 10 );
76-
t.equal( isnan( y ), true, 'returns NaN' );
76+
t.equal( isnan( y ), true, 'returns expected value' );
7777

7878
y = pmf( 2.0, -10, 3, 10 );
79-
t.equal( isnan( y ), true, 'returns NaN' );
79+
t.equal( isnan( y ), true, 'returns expected value' );
8080

8181
t.end();
8282
});
@@ -85,10 +85,10 @@ tape( 'if provided a `K` which is not a nonnegative integer, the function return
8585
var y;
8686

8787
y = pmf( 2.0, 20, -3, 10 );
88-
t.equal( isnan( y ), true, 'returns NaN' );
88+
t.equal( isnan( y ), true, 'returns expected value' );
8989

9090
y = pmf( 2.0, 20, -10, 10 );
91-
t.equal( isnan( y ), true, 'returns NaN' );
91+
t.equal( isnan( y ), true, 'returns expected value' );
9292

9393
t.end();
9494
});
@@ -97,10 +97,10 @@ tape( 'if provided an `n` which is not a nonnegative integer, the function retur
9797
var y;
9898

9999
y = pmf( 2.0, 20, 3, -10 );
100-
t.equal( isnan( y ), true, 'returns NaN' );
100+
t.equal( isnan( y ), true, 'returns expected value' );
101101

102102
y = pmf( 2.0, 20, 3, -20 );
103-
t.equal( isnan( y ), true, 'returns NaN' );
103+
t.equal( isnan( y ), true, 'returns expected value' );
104104

105105
t.end();
106106
});

lib/node_modules/@stdlib/stats/base/dists/hypergeometric/pmf/test/test.pmf.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,38 @@ tape( 'main export is a function', function test( t ) {
4444

4545
tape( 'if provided `NaN` for any parameter, the function returns `NaN`', function test( t ) {
4646
var y = pmf( NaN, 10, 10, 5 );
47-
t.equal( isnan( y ), true, 'returns NaN' );
47+
t.equal( isnan( y ), true, 'returns expected value' );
4848
y = pmf( 0.0, NaN, 10, 5 );
49-
t.equal( isnan( y ), true, 'returns NaN' );
49+
t.equal( isnan( y ), true, 'returns expected value' );
5050
y = pmf( 0.0, 10, NaN, 5 );
51-
t.equal( isnan( y ), true, 'returns NaN' );
51+
t.equal( isnan( y ), true, 'returns expected value' );
5252
y = pmf( 0.0, 10, 10, NaN );
53-
t.equal( isnan( y ), true, 'returns NaN' );
53+
t.equal( isnan( y ), true, 'returns expected value' );
5454
t.end();
5555
});
5656

5757
tape( 'if provided an integer `x` greater than `min( n, K )`, the function returns `0` (provided all parameters are valid)', function test( t ) {
5858
var y = pmf( PINF, 20, 20, 10 );
59-
t.equal( y, 0.0, 'returns 0' );
59+
t.equal( y, 0.0, 'returns expected value' );
6060

6161
y = pmf( 11, 20, 20, 10 );
62-
t.equal( y, 0.0, 'returns 0' );
62+
t.equal( y, 0.0, 'returns expected value' );
6363

6464
y = pmf( 100, 20, 20, 10 );
65-
t.equal( y, 0.0, 'returns 0' );
65+
t.equal( y, 0.0, 'returns expected value' );
6666

6767
t.end();
6868
});
6969

7070
tape( 'if provided an integer for `x` smaller than `max( 0, n + K - N )`, the function returns `0`', function test( t ) {
7171
var y = pmf( NINF, 40, 20, 10 );
72-
t.equal( y, 0.0, 'returns 0' );
72+
t.equal( y, 0.0, 'returns expected value' );
7373

7474
y = pmf( -1.0, 40, 20, 10 );
75-
t.equal( y, 0.0, 'returns 0' );
75+
t.equal( y, 0.0, 'returns expected value' );
7676

7777
y = pmf( -2.0, 30, 20, 20 );
78-
t.equal( y, 0.0, 'returns 0' );
78+
t.equal( y, 0.0, 'returns expected value' );
7979

8080
t.end();
8181
});
@@ -84,19 +84,19 @@ tape( 'if provided an `N` which is not a nonnegative integer, the function retur
8484
var y;
8585

8686
y = pmf( 2.0, 30.5, 20, 10 );
87-
t.equal( isnan( y ), true, 'returns NaN' );
87+
t.equal( isnan( y ), true, 'returns expected value' );
8888

8989
y = pmf( 2.0, -2, 20, 10 );
90-
t.equal( isnan( y ), true, 'returns NaN' );
90+
t.equal( isnan( y ), true, 'returns expected value' );
9191

9292
y = pmf( 2.0, -1, 20, 10 );
93-
t.equal( isnan( y ), true, 'returns NaN' );
93+
t.equal( isnan( y ), true, 'returns expected value' );
9494

9595
y = pmf( 0.0, 20.5, 20, 10 );
96-
t.equal( isnan( y ), true, 'returns NaN' );
96+
t.equal( isnan( y ), true, 'returns expected value' );
9797

9898
y = pmf( 0.0, PINF, 20, 10 );
99-
t.equal( isnan( y ), true, 'returns NaN' );
99+
t.equal( isnan( y ), true, 'returns expected value' );
100100

101101
t.end();
102102
});
@@ -105,19 +105,19 @@ tape( 'if provided a `K` which is not a nonnegative integer, the function return
105105
var y;
106106

107107
y = pmf( 2.0, 20, 3.5, 10 );
108-
t.equal( isnan( y ), true, 'returns NaN' );
108+
t.equal( isnan( y ), true, 'returns expected value' );
109109

110110
y = pmf( 2.0, 20, -2, 10 );
111-
t.equal( isnan( y ), true, 'returns NaN' );
111+
t.equal( isnan( y ), true, 'returns expected value' );
112112

113113
y = pmf( 2.0, 20, -1, 10 );
114-
t.equal( isnan( y ), true, 'returns NaN' );
114+
t.equal( isnan( y ), true, 'returns expected value' );
115115

116116
y = pmf( 0.0, 20, 2.5, 10 );
117-
t.equal( isnan( y ), true, 'returns NaN' );
117+
t.equal( isnan( y ), true, 'returns expected value' );
118118

119119
y = pmf( 0.0, 20, PINF, 10 );
120-
t.equal( isnan( y ), true, 'returns NaN' );
120+
t.equal( isnan( y ), true, 'returns expected value' );
121121

122122
t.end();
123123
});
@@ -126,19 +126,19 @@ tape( 'if provided an `n` which is not a nonnegative integer, the function retur
126126
var y;
127127

128128
y = pmf( 2.0, 40, 20, 3.5 );
129-
t.equal( isnan( y ), true, 'returns NaN' );
129+
t.equal( isnan( y ), true, 'returns expected value' );
130130

131131
y = pmf( 2.0, 40, 20, -2 );
132-
t.equal( isnan( y ), true, 'returns NaN' );
132+
t.equal( isnan( y ), true, 'returns expected value' );
133133

134134
y = pmf( 2.0, 40, 20, -1 );
135-
t.equal( isnan( y ), true, 'returns NaN' );
135+
t.equal( isnan( y ), true, 'returns expected value' );
136136

137137
y = pmf( 0.0, 40, 20, 2.5 );
138-
t.equal( isnan( y ), true, 'returns NaN' );
138+
t.equal( isnan( y ), true, 'returns expected value' );
139139

140140
y = pmf( 0.0, 40, 20, PINF );
141-
t.equal( isnan( y ), true, 'returns NaN' );
141+
t.equal( isnan( y ), true, 'returns expected value' );
142142

143143
t.end();
144144
});

0 commit comments

Comments
 (0)