MCPcopy
hub / github.com/josdejong/mathjs / assertAlike

Function assertAlike

test/unit-tests/function/algebra/simplify.test.js:664–670  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

662 })
663
664 function assertAlike (a, b) { // OK if both NaN or deepEqual
665 if (isNaN(a)) {
666 assert(isNaN(b))
667 } else {
668 assert.deepEqual(a, b)
669 }
670 }
671
672 it('should preserve values according to context', function () {
673 const realContext = { context: math.simplify.realContext }

Callers 1

simplify.test.jsFile · 0.85

Calls 1

deepEqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…