tahamajs's picture
download
raw
406 Bytes
var test = require("tape")
, bits = require("../twiddle.js");
test("interleave3", function(t) {
for(var x=0; x<=25; ++x) {
for(var y=0; y<=25; ++y) {
for(var z=0; z<=25; ++z) {
var h = bits.interleave3(x, y, z);
t.equal(bits.deinterleave3(h, 0), x);
t.equal(bits.deinterleave3(h, 1), y);
t.equal(bits.deinterleave3(h, 2), z);
}
}
}
t.end();
});

Xet Storage Details

Size:
406 Bytes
·
Xet hash:
a909d43d87c4544dbca9e771a8300518f5592a767c654687f2b163846c594deb

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