- * Test when the expected and actual values are within a certain
- * range (delta). If they're exactly apart by delta, that is considered
- * acceptable.
- */
-function assertEqualsDelta(msg, expected, actual, delta) {
- var args = this.argsWithOptionalMsg_(arguments, 4);
-
- var message = args[0];
- var exp = args[1];
- var act = args[2];
- var d = args[3];
- if (Math.abs(exp - act) > d) {
- fail(message +
- " Expected to be within " + d + " of " + exp + ", got " + act);
- }
-}
-
-/**