A suite to track Project Diva score statistics and ratings / D4DJ event data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
projectdivar/server/node_modules/buffer-to-uint8array/test/u8.js

15 lines
412 B

var test = require('tape');
var tou8 = require('../');
test('uint8 to uint8', function (t) {
t.plan(3);
var a = new Uint8Array(8);
var buf = Buffer('whatever');
for (var i = 0; i < buf.length; i++) a[i] = buf[i];
var b = tou8(a);
t.equal(a, b, 'reference equality');
t.equal(a.constructor.name, 'Uint8Array', 'constructor name');
t.equal(a.length, 8, 'u8 length');
});