From: Romain Beauxis Date: Tue, 20 Aug 2013 15:02:21 +0000 (-0500) Subject: Added faillig slice test. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=e626e6bd9045c1f0a97dc4a41449d0a43b0fc331;p=buffer.git Added faillig slice test. --- 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(); +});