Comparing version 0.11.0 to 0.12.0
{ | ||
"name": "bignum", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"description": "Arbitrary-precision integer arithmetic using OpenSSL", | ||
@@ -25,3 +25,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"nan": "^2.0.0" | ||
"nan": "^2.3.4" | ||
}, | ||
@@ -33,3 +33,3 @@ "devDependencies": { | ||
}, | ||
"license": "MIT/X11", | ||
"license": "MIT", | ||
"engine": { | ||
@@ -36,0 +36,0 @@ "node": ">=0.8.0" |
@@ -288,2 +288,6 @@ var assert = require('assert'); | ||
assert.eql(bignum.and(i, j).toString(), ks); | ||
assert.eql(bignum(-1 * i).and(j).toString(), (-1 * i) & j); | ||
assert.eql(bignum(i).and(-1 * j).toString(), i & (-1 * j)); | ||
assert.eql(bignum(-1 * i).and(-1 * j).toString(), (-1 * i) & (-1 * j)); | ||
} | ||
@@ -296,2 +300,6 @@ } | ||
assert.eql(bignum.and(bignum('111131', 16), bignum('111111', 16)).toString(16), '111111'); | ||
assert.eql(bignum.and(bignum('-111111', 16), bignum('111111', 16)).toString(16), '01'); | ||
assert.eql(bignum.and(bignum('111111', 16), bignum('-111111', 16)).toString(16), '01'); | ||
assert.eql(bignum.and(bignum('-111111', 16), bignum('-111111', 16)).toString(16), '-111111'); | ||
}; | ||
@@ -309,2 +317,6 @@ | ||
assert.eql(bignum.or(i, j).toString(), ks); | ||
assert.eql(bignum(-1 * i).or(j).toString(), (-1 * i) | j); | ||
assert.eql(bignum(i).or(-1 * j).toString(), i | (-1 * j)); | ||
assert.eql(bignum(-1 * i).or(-1 * j).toString(), (-1 * i) | (-1 * j)); | ||
} | ||
@@ -316,2 +328,6 @@ } | ||
assert.eql(bignum.or(bignum('111121', 16), bignum('111111', 16)).toString(16), '111131'); | ||
assert.eql(bignum.or(bignum('-111111', 16), bignum('111111', 16)).toString(16), '-01'); | ||
assert.eql(bignum.or(bignum('111111', 16), bignum('-111111', 16)).toString(16), '-01'); | ||
assert.eql(bignum.or(bignum('-111111', 16), bignum('-111111', 16)).toString(16), '-111111'); | ||
}; | ||
@@ -329,2 +345,6 @@ | ||
assert.eql(bignum.xor(i, j).toString(), ks); | ||
assert.eql(bignum(-1 * i).xor(j).toString(), (-1 * i) ^ j); | ||
assert.eql(bignum(i).xor(-1 * j).toString(), i ^ (-1 * j)); | ||
assert.eql(bignum(-1 * i).xor(-1 * j).toString(), (-1 * i) ^ (-1 * j)); | ||
} | ||
@@ -336,2 +356,6 @@ } | ||
assert.eql(bignum.xor(bignum('111121', 16), bignum('111111', 16)).toString(), 0x30); | ||
assert.eql(bignum.xor(bignum('-111111', 16), bignum('111111', 16)).toString(), -2); | ||
assert.eql(bignum.xor(bignum('111111', 16), bignum('-111111', 16)).toString(), -2); | ||
assert.eql(bignum.xor(bignum('-111111', 16), bignum('-111111', 16)).toString(), 0); | ||
}; | ||
@@ -338,0 +362,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
80548
0
0
1163
345
Updatednan@^2.3.4