bn.js
Advanced tools
Comparing version 4.6.3 to 4.6.4
{ | ||
"name": "bn.js", | ||
"version": "4.6.3", | ||
"version": "4.6.4", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
@@ -124,2 +124,8 @@ /* global describe, it */ | ||
describe('.toArray()', function () { | ||
it('should return [ 0 ] for `0`', function () { | ||
var n = new BN(0); | ||
assert.deepEqual(n.toArray('be'), [ 0 ]); | ||
assert.deepEqual(n.toArray('le'), [ 0 ]); | ||
}); | ||
it('should zero pad to desired lengths', function () { | ||
@@ -126,0 +132,0 @@ var n = new BN(0x123456); |
Sorry, the diff of this file is too big to display
151674
4330