You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
217 B
JavaScript
11 lines
217 B
JavaScript
7 years ago
|
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();
|
||
|
});
|