stdlib-js / random-base-arcsine
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -21,6 +21,7 @@
Loading
21 21
// MODULES //
22 22
23 23
var isNumber = require( '@stdlib/assert-is-number' ).isPrimitive;
24 +
var format = require( '@stdlib/string-format' );
24 25
var isnan = require( '@stdlib/assert-is-nan' );
25 26
26 27
@@ -42,13 +43,13 @@
Loading
42 43
*/
43 44
function validate( a, b ) {
44 45
	if ( !isNumber( a ) || isnan( a ) ) {
45 -
		return new TypeError( 'invalid argument. First argument must be a number primitive and not `NaN`. Value: `'+a+'`.' );
46 +
		return new TypeError( format( 'invalid argument. First argument must be a number primitive and not `NaN`. Value: `%s`.', a ) );
46 47
	}
47 48
	if ( !isNumber( b ) || isnan( b ) ) {
48 -
		return new TypeError( 'invalid argument. Second argument must be a number primitive and not `NaN`. Value: `'+b+'`.' );
49 +
		return new TypeError( format( 'invalid argument. Second argument must be a number primitive and not `NaN`. Value: `%s`.', b ) );
49 50
	}
50 51
	if ( a >= b ) {
51 -
		return new RangeError( 'invalid argument. Minimum support `a` must be less than maximum support `b`. Value: `['+a+','+b+']`.');
52 +
		return new RangeError( format( 'invalid argument. Minimum support `a` must be less than maximum support `b`. Value: `[%f,%f]`.', a, b ) );
52 53
	}
53 54
	return null;
54 55
}
Files Coverage
lib 100.00%
Project Totals (5 files) 100.00%
2007661250
unittests
2005792392
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading