From: Daniel Cousens Date: Sat, 24 May 2014 09:32:09 +0000 (+1000) Subject: add failing test for array of ints X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=21ffa8a110d3ea2f22da85cbb54ea6603528495d;p=buffer.git add failing test for array of ints --- diff --git a/test/basic.js b/test/basic.js index 48ee29c..53994fd 100644 --- a/test/basic.js +++ b/test/basic.js @@ -9,6 +9,14 @@ test('new buffer from array', function (t) { t.end() }) +test('new buffer from array w/ negatives', function (t) { + t.equal( + new B([-1, -2, -3]).toString('hex'), + 'fffefd' + ) + t.end() +}) + test('new buffer from string', function (t) { t.equal( new B('hey', 'utf8').toString(),