summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/cacache/node_modules/mississippi/node_modules/concat-stream/node_modules/typedarray/test/tarray.js
blob: df596a34f23c0ef931cd5b41139985b8d23e8e2f (plain)
1
2
3
4
5
6
7
8
9
10
var TA = require('../');
var test = require('tape');

test('tiny u8a test', function (t) {
    var ua = new(TA.Uint8Array)(5);
    t.equal(ua.length, 5);
    ua[1] = 256 + 55;
    t.equal(ua[1], 55);
    t.end();
});