MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / near

Function near

lib/web/CodeMirror/test/driver.js:104–107  ·  view source on GitHub ↗
(a, b, margin, msg)

Source from the content-addressed store, hash-verified

102 if (a != b) throw new Failure(label(a + " != " + b, msg));
103}
104function near(a, b, margin, msg) {
105 if (Math.abs(a - b) > margin)
106 throw new Failure(label(a + " is not close to " + b + " (" + margin + ")", msg));
107}
108function eqCharPos(a, b, msg) {
109 function str(p) { return "{line:" + p.line + ",ch:" + p.ch + ",sticky:" + p.sticky + "}"; }
110 if (a == b) return;

Callers 1

test.jsFile · 0.85

Calls 1

labelFunction · 0.85

Tested by

no test coverage detected