Fix a lzw_decoder bug.

This commit is contained in:
Nigel Tao committed 2017-06-10 18:08:16 +10:00
1 parent f403d0faa8
commit 2fd08e0cf8
3 files changed
+2 -5

No files matched your search

-3
View File
@@ -64,12 +64,9 @@ void test_lzw_decode() {
goto cleanup1;
}
/*
TODO: fix the bug and uncomment this test.
if (!buf1s_equal(&got, &want)) {
goto cleanup1;
}
*/
// As a sanity check, the first decoded byte should be 0xDC.
if (got.ptr[0] != 0xDC) {
FAIL("first decoded byte: got 0x%02x, want 0x%02x", (int)(got.ptr[0]),