From e626e6bd9045c1f0a97dc4a41449d0a43b0fc331 Mon Sep 17 00:00:00 2001 From: Romain Beauxis Date: Tue, 20 Aug 2013 10:02:21 -0500 Subject: [PATCH] Added faillig slice test. --- test/buffer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/buffer.js b/test/buffer.js index b539bc3..d4ddbae 100644 --- a/test/buffer.js +++ b/test/buffer.js @@ -240,3 +240,9 @@ test('base64 ignore whitespace', function(t) { t.equal(buf.toString(), 'aoeu'); t.end(); }); + +test('buffer.slice sets indexes', function (t) { + t.plan(1); + t.equal((new B('hallo')).slice(0, 5).toString(), 'hallo'); + t.end(); +}); -- 2.34.1