Skip to content

Commit d79211e

Browse files
committed
test: add more tests
1 parent 474b103 commit d79211e

File tree

6 files changed

+490
-33
lines changed

6 files changed

+490
-33
lines changed

lib/node_modules/@stdlib/math/base/special/gammainc/test/fixtures/cpp/huge.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/gammainc/test/fixtures/cpp/large.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/gammainc/test/fixtures/cpp/medium.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/gammainc/test/fixtures/cpp/runner.cpp

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,25 @@ int main( void ) {
341341
exit( 1 );
342342
}
343343

344-
// Generate fixture data:
344+
// Small x and s:
345345
rand_array_f64( x, len, 1.0, 40.0 );
346346
rand_array_f64( s, len, 1.0, 40.0 );
347-
generate( x, s, len, "output.json" );
347+
generate( x, s, len, "small.json" );
348+
349+
// Medium x and s:
350+
rand_array_f64( x, len, 40.0, 100.0 );
351+
rand_array_f64( s, len, 40.0, 100.0 );
352+
generate( x, s, len, "medium.json" );
353+
354+
// Large x and small s:
355+
rand_array_f64( x, len, 100.0, 1000.0 );
356+
rand_array_f64( s, len, 1.0, 50.0 );
357+
generate( x, s, len, "large.json" );
358+
359+
// Large x and medium s:
360+
rand_array_f64( x, len, 100.0, 1000.0 );
361+
rand_array_f64( s, len, 50.0, 100.0 );
362+
generate( x, s, len, "huge.json" );
348363

349364
// Free allocated memory:
350365
free( x );

lib/node_modules/@stdlib/math/base/special/gammainc/test/fixtures/cpp/small.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)