use buffer-reverse
This commit is contained in:
parent
28372f0cd7
commit
731a31ecba
9 changed files with 17 additions and 30 deletions
test
|
@ -88,19 +88,6 @@ describe('bufferutils', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('reverse', function () {
|
||||
fixtures.valid.forEach(function (f) {
|
||||
it('reverses ' + f.hex64 + ' correctly', function () {
|
||||
var buffer = new Buffer(f.hex64, 'hex')
|
||||
var buffer2 = bufferutils.reverse(buffer)
|
||||
|
||||
Array.prototype.reverse.call(buffer)
|
||||
|
||||
assert.deepEqual(buffer, buffer2)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('varIntBuffer', function () {
|
||||
fixtures.valid.forEach(function (f) {
|
||||
it('encodes ' + f.dec + ' correctly', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue