tiny-inflate
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "tiny-inflate", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A tiny inflate implementation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,3 +45,3 @@ var inflate = require('../'); | ||
it('should inflate some data', function() { | ||
var out = new Buffer(uncompressed.length); | ||
var out = Buffer.alloc(uncompressed.length); | ||
inflate(compressed, out); | ||
@@ -52,3 +52,3 @@ assert.deepEqual(out, uncompressed); | ||
it('should slice output buffer', function() { | ||
var out = new Buffer(uncompressed.length + 1024); | ||
var out = Buffer.alloc(uncompressed.length + 1024); | ||
var res = inflate(compressed, out); | ||
@@ -60,3 +60,3 @@ assert.deepEqual(res, uncompressed); | ||
it('should handle uncompressed blocks', function() { | ||
var out = new Buffer(uncompressed.length); | ||
var out = Buffer.alloc(uncompressed.length); | ||
inflate(noCompression, out); | ||
@@ -67,3 +67,3 @@ assert.deepEqual(out, uncompressed); | ||
it('should handle fixed huffman blocks', function() { | ||
var out = new Buffer(uncompressed.length); | ||
var out = Buffer.alloc(uncompressed.length); | ||
inflate(fixed, out); | ||
@@ -70,0 +70,0 @@ assert.deepEqual(out, uncompressed); |
43000
6
358