UNPKG

flo-poly

Version:

A practical, root-focused JavaScript polynomial utility library.

15 lines (12 loc) 423 B
import { assert } from 'chai'; import { describe } from 'mocha'; import { changeVariablesLinear } from '../../src/index.js'; describe('changeVariables', function() { it('should return the correct results for some input parameters', function() { let res = changeVariablesLinear([1,2,7], 3, 4); //=> [9, 30, 31] assert.equal(res[0], 9); assert.equal(res[1], 30); assert.equal(res[2], 31); }); });