Comparing version 4.10.0 to 4.10.1
{ | ||
"name": "bn.js", | ||
"version": "4.10.0", | ||
"version": "4.10.1", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
@@ -80,2 +80,8 @@ /* global describe, it */ | ||
}); | ||
it('should throw error with num eq 0x4000000', function () { | ||
assert.throws(function () { | ||
new BN(0).iaddn(0x4000000); | ||
}); | ||
}); | ||
}); | ||
@@ -158,2 +164,8 @@ | ||
}); | ||
it('should throw error with num eq 0x4000000', function () { | ||
assert.throws(function () { | ||
new BN(0).isubn(0x4000000); | ||
}); | ||
}); | ||
}); | ||
@@ -277,2 +289,8 @@ | ||
}); | ||
it('should throw error with num eq 0x4000000', function () { | ||
assert.throws(function () { | ||
new BN(0).imuln(0x4000000); | ||
}); | ||
}); | ||
}); | ||
@@ -279,0 +297,0 @@ |
@@ -234,2 +234,11 @@ /* global describe, it */ | ||
}); | ||
it('K256.split for 512 bits number should return equal numbers', function () { | ||
var red = BN.red('k256'); | ||
var input = new BN(1).iushln(512).subn(1); | ||
assert.equal(input.bitLength(), 512); | ||
var output = new BN(0); | ||
red.prime.split(input, output); | ||
assert.equal(input.cmp(output), 0); | ||
}); | ||
}); |
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
163064
4586