|
@ -49,11 +49,11 @@ describe('util', function() { |
|
|
}); |
|
|
}); |
|
|
describe('#intToBuffer', function() { |
|
|
describe('#intToBuffer', function() { |
|
|
var data = [ |
|
|
var data = [ |
|
|
[0, '00000000'], |
|
|
[0, '00'], |
|
|
[-0, '00000000'], |
|
|
[-0, '00'], |
|
|
[-1, 'ffffffff'], |
|
|
[-1, 'ff'], |
|
|
[1, '01000000'], |
|
|
[1, '01'], |
|
|
[18, '12000000'], |
|
|
[18, '12'], |
|
|
[878082192, '90785634'], |
|
|
[878082192, '90785634'], |
|
|
[0x01234567890, '1200000090785634'], |
|
|
[0x01234567890, '1200000090785634'], |
|
|
[-4294967297, 'feffffffffffffff'], |
|
|
[-4294967297, 'feffffffffffffff'], |
|
|