mirror of
https://github.com/jwetzell/bmip10-js.git
synced 2026-09-02 11:09:00 +00:00
update test logging
This commit is contained in:
@@ -12,5 +12,12 @@ const encodedData = rawData.map((sample)=>{
|
|||||||
const decodedData = encodedData.map((sample)=>{
|
const decodedData = encodedData.map((sample)=>{
|
||||||
return decoder.decode(sample)
|
return decoder.decode(sample)
|
||||||
});
|
});
|
||||||
console.log(encodedData);
|
|
||||||
console.log(decodedData);
|
console.table(rawData.map((sample, index)=>{
|
||||||
|
return {
|
||||||
|
raw: sample,
|
||||||
|
encoded: encodedData[index],
|
||||||
|
decoded: decodedData[index],
|
||||||
|
diff: decodedData[index] - sample,
|
||||||
|
}
|
||||||
|
}))
|
||||||
Reference in New Issue
Block a user