Skip to content

Commit

Permalink
add a test for ref_base being an N
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben J. Woodcroft committed Oct 8, 2012
1 parent 04186a5 commit 7d2510f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_bio-pileup_iterator.rb
Expand Up @@ -251,4 +251,13 @@ def test_when_read_mapping_quality_is_dot
assert_equal 'ATT', piles[0].reads[0].sequence
assert_equal '-', piles[0].reads[0].direction
end

def test_n
lines = "gi|308171891|ref|NC_014551.1|\t111565\tN\t7\taaAaAAA\t~~~~~~~\n"
piles = Bio::DB::PileupIterator.new(lines).to_a #parse, it should fail otherwise
assert_equal 1, piles.length
assert_equal 7, piles[0].coverage
assert_equal 'a', piles[0].reads[1].sequence
assert_equal 'N', piles[0].ref_base
end
end

0 comments on commit 7d2510f

Please sign in to comment.