tahamajs's picture
download
raw
307 Bytes
var test = require("tape")
, bits = require("../twiddle.js");
test("interleave2", function(t) {
for(var x=0; x<100; ++x) {
for(var y=0; y<100; ++y) {
var h = bits.interleave2(x, y);
t.equal(bits.deinterleave2(h, 0), x);
t.equal(bits.deinterleave2(h, 1), y);
}
}
t.end();
});

Xet Storage Details

Size:
307 Bytes
·
Xet hash:
bae2eebc09f724bfdf2bd58c06890179694b23d52a88c36deb44e2a2b3c00920

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.