Comparing version 2.1.0 to 2.2.0
@@ -1012,2 +1012,6 @@ (function (module, exports) { | ||
BN.prototype.muln = function muln(num) { | ||
return this.clone().imuln(num); | ||
}; | ||
// `this` * `this` | ||
@@ -1014,0 +1018,0 @@ BN.prototype.sqr = function sqr() { |
{ | ||
"name": "bn.js", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
@@ -219,2 +219,12 @@ var assert = require('assert'); | ||
describe('.muln()', function() { | ||
it('should multiply number by small number', function() { | ||
var a = new BN('abcdef01234567890abcd', 16); | ||
var b = new BN('dead', 16); | ||
var c = a.mul(b); | ||
assert.equal(a.muln(0xdead).toString(16), c.toString(16)); | ||
}); | ||
}); | ||
describe('.div()', function() { | ||
@@ -221,0 +231,0 @@ it('should divide numbers', function() { |
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
111235
3049