MCPcopy
hub / github.com/nwutils/nw-sample-apps / eqPos

Function eqPos

mini-code-edit/cm/test/test.js:327–332  ·  view source on GitHub ↗
(a, b, msg)

Source from the content-addressed store, hash-verified

325 if (a != b) throw new Failure(a + " != " + b + (msg ? " (" + msg + ")" : ""));
326}
327function eqPos(a, b, msg) {
328 if (a == b) return;
329 if (a == null || b == null) throw new Failure("comparing point to null");
330 eq(a.line, b.line, msg);
331 eq(a.ch, b.ch, msg);
332}
333function is(a, msg) {
334 if (!a) throw new Failure("assertion failed" + (msg ? " (" + msg + ")" : ""));
335}

Callers 1

test.jsFile · 0.85

Calls 1

eqFunction · 0.85

Tested by

no test coverage detected