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

sadd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sadd - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.travis.yml

5

package.json
{
"name": "sadd",
"version": "1.0.0",
"version": "1.0.1",
"description": "Performs the addition of two numbers represented as strings, and returns the result represented as string",

@@ -18,3 +18,4 @@ "main": "index.js",

"tape": "^4.3.0"
}
},
"tonicExampleFilename": "tonicExample.js"
}

@@ -60,2 +60,11 @@ var test = require('tape');

test('sadd sums two strings bigger than MAX_SAFE_INTEGER', function(t) {
t.equals(sadd('9007199254740992', '1'), '9007199254740993');
t.equals(sadd('9007199254740992', '10'), '9007199254741002');
t.equals(sadd('9007199254740992', '100'), '9007199254741092');
t.equals(sadd('9007199254740992', '1000'), '9007199254741992');
t.end();
});
test('sadd throws when either argument is not a number', function(t) {

@@ -62,0 +71,0 @@ t.throws(sadd.bind(null, '1', ''));

README.markdown

Sorry, the diff of this file is not supported yet

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