src/asserts.js
function assertEqualsDelta(msg, expected, actual, epsilon) {
	var args = this.argsWithOptionalMsg_(arguments, 4);
	jstestdriver.assertCount++;
	msg = args[0];
	expected = args[1];
	actual = args[2];
	epsilon = args[3];

	if (!compareDelta_(expected, actual, epsilon)) {
		this.fail(msg + 'expected ' + epsilon + ' within ' +
							this.prettyPrintEntity_(expected) +
							' but was ' + this.prettyPrintEntity_(actual) + '');
	}
	return true;
}
function assertEqualsDelta(msg, expected, actual, epsilon) {
	var args = this.argsWithOptionalMsg_(arguments, 4);
	jstestdriver.assertCount++;
	msg = args[0];
	expected = args[1];
	actual = args[2];
	epsilon = args[3];

	if (!compareDelta_(expected, actual, epsilon)) {
		this.fail(msg + 'expected ' + epsilon + ' within ' +
							this.prettyPrintEntity_(expected) +
							' but was ' + this.prettyPrintEntity_(actual) + '');
	}
	return true;
}
function assertEqualsDelta ( msg , expected , actual , epsilon ) { var args = this . argsWithOptionalMsg_ ( arguments , 4 ) ; jstestdriver . assertCount ++ ; msg = args [ 0 ] ; expected = args [ 1 ] ; actual = args [ 2 ] ; epsilon = args [ 3 ] ; if ( ! compareDelta_ ( expected , actual , epsilon ) ) { this . fail ( msg + 'expected ' + epsilon + ' within ' + this . prettyPrintEntity_ ( expected ) + ' but was ' + this . prettyPrintEntity_ ( actual ) + '' ) ; } return true ; }
Asserts that two doubles, or the elements of two arrays of doubles,
are equal to within a positive delta.
Asserts that two doubles or the elements of two arrays of doubles are equal to within a positive delta .