1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-14 22:33:14 +00:00

Add tests for issue #31

Test for expected results as described in https://github.com/BioJulia/XAM.jl/issues/31.

This commit needs redoing once https://github.com/BioJulia/FormatSpecimens.jl/pull/5 is released upstream.
This commit is contained in:
Ciarán O'Mara 2021-10-24 01:22:00 +11:00
parent 22667dc7af
commit 6bc08e15b2
4 changed files with 13 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -25,3 +25,4 @@ end
include("test_sam.jl") include("test_sam.jl")
include("test_bam.jl") include("test_bam.jl")
include("test_issues.jl")

12
test/test_issues.jl Normal file
View file

@ -0,0 +1,12 @@
@testset "Issues" begin
# https://github.com/BioJulia/XAM.jl/issues/31
path_bam = joinpath(@__DIR__, "data", "SRR7993829_1.100K.forward.bam")
open(BAM.Reader, path_bam, index = path_bam * ".bai") do reader
@test count((r)-> true, eachoverlap(reader, "JH584304.1", 51000:51200)) == 0
@test count((r)-> true, eachoverlap(reader, "JH584304.1", 51000:51715)) == 1
end
end