From e2542866d1134c11920190b686be69434c092dbf Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Wed, 27 May 2015 15:01:26 -0300 Subject: [PATCH] expose BN.fromString problem --- test/crypto/bn.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/crypto/bn.js b/test/crypto/bn.js index a57260d..45d6272 100644 --- a/test/crypto/bn.js +++ b/test/crypto/bn.js @@ -79,6 +79,10 @@ describe('BN', function() { it('should make BN from a string', function() { BN.fromString('5').toString().should.equal('5'); }); + it('should work with 7fffff0000000000000000000000000000000000000000000000000000000000', function() { + BN.fromString('7fffff0000000000000000000000000000000000000000000000000000000000') + .toString().should.equal('7fffff0000000000000000000000000000000000000000000000000000000000'); + }); }); describe('#toString', function() {