Comparing version 1.0.0 to 1.0.1
{ | ||
"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', '')); |
Sorry, the diff of this file is not supported yet
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
4805
7
104
28