MCPcopy Create free account
hub / github.com/veltman/flubber / inDeltaArray

Function inDeltaArray

test/utils.js:8–14  ·  view source on GitHub ↗
(actual, expected, delta)

Source from the content-addressed store, hash-verified

6}
7
8function inDeltaArray(actual, expected, delta) {
9 var n = expected.length, i = -1;
10 if (actual.length !== n) return false;
11 while (++i < n)
12 if (!inDelta(actual[i], expected[i], delta)) return false;
13 return true;
14}
15
16function inDeltaNumber(actual, expected, delta) {
17 return actual >= expected - delta && actual <= expected + delta;

Callers

nothing calls this directly

Calls 1

inDeltaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…