Closed sogaiu closed 1 year ago
With 63f656e6 on a Windows 10 machine, I see an error in the output of jpm test:
jpm test
running test/suite-zip.janet ... ✘ compress -> decompress round trip test suite test/suite-zip.janet finished in 0.001 seconds - 0 of 1 tests passed. non-zero exit code in test/suite-zip.janet: 1
I put some debugging prints before:
(assert (= file-contents (string bytes)) "compress -> decompress round trip")
I got a length of 6000 for file-contents and 0 for bytes. Verified that bytes was a buffer too.
file-contents
bytes
Test passes fine on a Linux box (and the lengths for file-contents and bytes are both 6000).
Adding (zip/writer-close w) after (zip/writer-finalize w) makes things work here.
(zip/writer-close w)
(zip/writer-finalize w)
Perhaps it has something to do with this...
The test passes for me now.
With 63f656e6 on a Windows 10 machine, I see an error in the output of
jpm test
:I put some debugging prints before:
I got a length of 6000 for
file-contents
and 0 forbytes
. Verified thatbytes
was a buffer too.Test passes fine on a Linux box (and the lengths for
file-contents
andbytes
are both 6000).