diff --git a/test/simple/test-buffer.js b/test/simple/test-buffer.js index 818e98cc0ee..e8756a7db4f 100644 --- a/test/simple/test-buffer.js +++ b/test/simple/test-buffer.js @@ -8,8 +8,10 @@ var b = Buffer(1024); // safe constructor console.log('b.length == ' + b.length); assert.strictEqual(1024, b.length); +b[0] = -1; +assert.equal(b[0], 255); + for (var i = 0; i < 1024; i++) { - assert.ok(b[i] >= 0); b[i] = i % 256; }