Check that EOF_BLOCK gets written

develop
Ciarán O'Mara 1 year ago
parent 10c1aacd4d
commit 560a5cd8df

@ -209,6 +209,14 @@
close(reader)
close(writer)
# Check that EOF_BLOCK gets written.
nbytes = filesize(path)
@test BAM.BGZFStreams.EOF_BLOCK == open(path) do io
seek(io, nbytes - length(BAM.BGZFStreams.EOF_BLOCK))
read(io)
end
reader = open(BAM.Reader, path)
@test header(reader) == header_original

Loading…
Cancel
Save