expose BN.fromString problem

This commit is contained in:
Manuel Araoz 2015-05-27 15:01:26 -03:00
parent 5ee1c3f6aa
commit e2542866d1
1 changed files with 4 additions and 0 deletions

View File

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