Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tarray.js « test « typedarray « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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();
});