mathsteps
Version:
Step by step math solutions
17 lines (13 loc) • 528 B
JavaScript
const breakUpNumeratorSearch = require('../../../lib/simplifyExpression/breakUpNumeratorSearch');
const TestUtil = require('../../TestUtil');
function testBreakUpNumeratorSearch(exprStr, outputStr) {
TestUtil.testSimplification(breakUpNumeratorSearch, exprStr, outputStr);
}
describe('breakUpNumerator', function() {
const tests = [
['(x+3+y)/3', '(x / 3 + 3/3 + y / 3)'],
['(2+x)/4', '(2/4 + x / 4)'],
['2(x+3)/3', '2 * (x / 3 + 3/3)'],
];
tests.forEach(t => testBreakUpNumeratorSearch(t[0], t[1]));
});