Manuel Aráoz
11 years ago
5 changed files with 55 additions and 34 deletions
@ -0,0 +1,18 @@ |
|||
var chai = chai || require('chai'); |
|||
var bitcore = bitcore || require('../bitcore'); |
|||
var coinUtil = coinUtil || bitcore.util; |
|||
var should = chai.should(); |
|||
var assert = chai.assert; |
|||
|
|||
var Bignum = bitcore.Bignum; |
|||
|
|||
if (typeof process == 'undefined' || typeof process.versions == 'undefined') { |
|||
describe('#Bignum.browser', function() { |
|||
it('should have proper config settings', function() { |
|||
bitcore.Bignum.config().EXPONENTIAL_AT[0].should.equal(-9999999); |
|||
bitcore.Bignum.config().EXPONENTIAL_AT[1].should.equal(9999999); |
|||
bitcore.Bignum.config().DECIMAL_PLACES.should.equal(0); |
|||
bitcore.Bignum.config().ROUNDING_MODE.should.equal(1); |
|||
}); |
|||
}); |
|||
} |
Loading…
Reference in new issue