Skip to content

Commit

Permalink
A few minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmrugg committed Aug 8, 2015
1 parent 809c651 commit a567253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -50,7 +50,7 @@ Create the LZMA object.
my_lzma.compress(string || byte_array, mode, on_finish(result) {}, on_progress(percent) {});

/// To decompress:
///NOTE: The result will be returned as a string if it is printable text; otherwise, it will return an array of bytes.
///NOTE: The result will be returned as a string if it is printable text; otherwise, it will return an array of signed bytes.
my_lzma.decompress(byte_array, on_finish(result) {}, on_progress(percent) {});


Expand Down
6 changes: 3 additions & 3 deletions test/test-node.js
Expand Up @@ -293,12 +293,12 @@ function compare(a, b)
var i;

if (typeof a !== typeof b) {
console.log("BAD TYPES:", typeof a, "!==", typeof b)
error("BAD TYPES:", typeof a, "!==", typeof b)
return false;
}

if (a.length !== b.length) {
console.log("BAD LENGTH:", a.length, "!==", b.length)
error("BAD LENGTH:", a.length, "!==", b.length)
return false;
}

Expand All @@ -314,7 +314,7 @@ function compare(a, b)

for (i = a.length - 1; i >= 0; --i) {
if (a[i] !== b[i]) {
console.log("BAD VAL (" + i + "):", a[i], "!==", b[i])
error("BAD VAL (" + i + "):", a[i], "!==", b[i])
return false;
}
}
Expand Down

0 comments on commit a567253

Please sign in to comment.