Skip to content

Commit ca92061

Browse files
jkbonfielddaviesrob
authored andcommitted
Fix minor inconsistency in test data.
test/sam's test_bam_set1_write_and_read_back.tmp.bam file had mate information (rnext, pnext, tlen) for a record that was not paired. This triggers a CRAM "fix" where some, but strangley not all, of this was changed. Arguably CRAM should correct all 3 or none, but regardless the test data we are generating should be correct.
1 parent 24e4e31 commit ca92061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sam.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@ static void test_bam_set1_write_and_read_back(void)
22542254
w_bam = bam_init1();
22552255
VERIFY(w_bam != NULL, "failed to initialize BAM struct.");
22562256
r = bam_set1(w_bam, strlen(qname), qname,
2257-
BAM_FREVERSE, 0, 1000, 42,
2257+
BAM_FPAIRED | BAM_FREVERSE, 0, 1000, 42,
22582258
sizeof(cigar) / 4, cigar, 0, 2000, 3000,
22592259
strlen(seq), seq, qual, 64);
22602260
VERIFY(r >= 0, "call to bam_set1() failed.");

0 commit comments

Comments
 (0)