Browse Source

expose BN.fromString problem

patch-2
Manuel Araoz 10 years ago
parent
commit
e2542866d1
  1. 4
      test/crypto/bn.js

4
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() {

Loading…
Cancel
Save