Comparing version 0.8.0 to 0.8.1
@@ -9,3 +9,3 @@ { | ||
"license": "MIT", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"homepage": "http://nerdamer.com/", | ||
@@ -12,0 +12,0 @@ "directory": { |
@@ -667,2 +667,33 @@ /* global expect */ | ||
}); | ||
it('should simplify correctly', function () { | ||
// given | ||
var testCases = [ | ||
{ | ||
given: 'simplify(1/2*sin(x^2)^2+cos(x^2)^2)', | ||
expected: '(1/2)*cos(x^2)^2+1/2' | ||
}, | ||
{ | ||
given: 'simplify(0.75*sin(x^2)^2+cos(x^2)^2)', | ||
expected: '(3/4)*cos(x^2)^2+1/2' | ||
}, | ||
{ | ||
given: 'simplify(cos(x)^2+sin(x)^2+cos(x)-tan(x)-1+sin(x^2)^2+cos(x^2)^2)', | ||
expected: '-tan(x)+1+cos(x)' | ||
}, | ||
{ | ||
given: 'simplify((x^2+4*x-45)/(x^2+x-30))', | ||
expected: '(6+x)^(-1)*(9+x)' | ||
} | ||
]; | ||
for (var i = 0; i < testCases.length; ++i) { | ||
// when | ||
var result = nerdamer(testCases[i].given); | ||
// then | ||
expect(result.toString()).toEqual(testCases[i].expected); | ||
} | ||
}); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1054904
20821