Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nerdamer

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nerdamer - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc