Skip to content

Commit

Permalink
Fix ill-encoded test CRAM files
Browse files Browse the repository at this point in the history
  • Loading branch information
athos committed Mar 27, 2024
1 parent db30ca3 commit 27d1c69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified test-resources/cram/medium.cram
Binary file not shown.
Binary file modified test-resources/cram/medium_with_standard_tags.cram
Binary file not shown.
8 changes: 4 additions & 4 deletions test/cljam/io/cram/decode/structure_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
:records 10000
:counter 0
:bases 760000
:blocks 29
:blocks 31
:landmarks [207]
:crc [246 184 214 91]}
:crc [125 112 223 241]}
(decode-container-header bb)))
(is (= {:preservation-map
{:RN true
Expand Down Expand Up @@ -156,9 +156,9 @@
:records 2271
:counter 10000
:bases 172596
:blocks 29
:blocks 31
:landmarks [171]
:crc [228 46 96 120]}
:crc [111 230 105 210]}
container-header))
(bb/skip bb (:length container-header))
(is (struct/eof-container? (decode-container-header bb)))))))

0 comments on commit 27d1c69

Please sign in to comment.