UNPKG

flo-poly

Version:

A practical, root-focused JavaScript polynomial utility library.

24 lines (19 loc) 559 B
import { assert, expect } from 'chai'; import { describe } from 'mocha'; import { createRootExact } from '../../../src/index.js'; describe('createRootExact', function() { it('should correctly create rational root object { tS: t, tE: t, multiplicity: 1 }', function() { { // some root interval let r = createRootExact(2); // this test is really just for completeness' sake expect(r).to.eql({ tS: 2, tE: 2, multiplicity: 1 }); } }); });