(expr, expected, opts = {}, simpOpts = {})
| 5 | |
| 6 | describe('simplifyCore', function () { |
| 7 | const testSimplifyCore = function (expr, expected, opts = {}, simpOpts = {}) { |
| 8 | let actual = math.simplifyCore(math.parse(expr), simpOpts).toString(opts) |
| 9 | assert.strictEqual(actual, expected) |
| 10 | actual = math.simplifyCore(expr, simpOpts).toString(opts) |
| 11 | assert.strictEqual(actual, expected) |
| 12 | } |
| 13 | |
| 14 | it('should handle different node types', function () { |
| 15 | testSimplifyCore('5*x*3', '3 * 5 * x') |
no test coverage detected
searching dependent graphs…