Comparing version 4.11.2 to 4.11.3
{ | ||
"name": "bn.js", | ||
"version": "4.11.2", | ||
"version": "4.11.3", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
@@ -144,2 +144,16 @@ /* global describe, it */ | ||
}); | ||
it('should not allow modulus <= 1', function () { | ||
assert.throws(function () { | ||
BN.red(new BN(0)); | ||
}, /^Error: modulus must be greater than 1$/); | ||
assert.throws(function () { | ||
BN.red(new BN(1)); | ||
}, /^Error: modulus must be greater than 1$/); | ||
assert.doesNotThrow(function () { | ||
BN.red(new BN(2)); | ||
}); | ||
}); | ||
}); | ||
@@ -146,0 +160,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
169151
4715