Sha256: 2aa534fc489a6755c6110777d65844c4e4183633f6ccbf7c760bb9cf61230371

Contents?: true

Size: 386 Bytes

Versions: 62

Compression:

Stored size: 386 Bytes

Contents

var B = require('../').Buffer
var test = require('tape')
if (process.env.OBJECT_IMPL) B.TYPED_ARRAY_SUPPORT = false


test('.get (deprecated)', function (t) {
  var b = new B([7, 42])
  t.equal(b.get(0), 7)
  t.equal(b.get(1), 42)
  t.end()
})

test('.set (deprecated)', function (t) {
  var b = new B(2)
  b.set(7, 0)
  b.set(42, 1)
  t.equal(b[0], 7)
  t.equal(b[1], 42)
  t.end()
})

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
smock-0.1.228 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.227 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.226 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.225 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.224 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.9 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.223 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.222 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.221 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.220 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.219 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.218 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.217 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.216 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.215 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.214 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.213 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.212 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.211 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js
smock-0.1.210 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/test/deprecated.js