Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
anton083 committed Nov 3, 2023
1 parent 57f8dfe commit 13b8eb3
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@ using Test
ss_composition(ss::Vector{Int}) = [count(==(i), ss) for i in 1:3]

@testset "AssigningSecondaryStructure.jl" begin
@test ss_composition.(dssp("data/1ASS.pdb")) == [[60, 53, 39]]
@test ss_composition.(dssp("data/1ZAK.pdb")) == [[72, 116, 32], [72, 116, 32]]

@testset "io.jl" begin

@testset "1ASS" begin
backbone = load_pdb_backbone_coords("data/1ASS.pdb")
@test length(backbone) == 1
@test size.(backbone, 3) == [152]
end

@testset "1ZAK" begin
backbone = load_pdb_backbone_coords("data/1ZAK.pdb")
@test length(backbone) == 2
@test size.(backbone, 3) == [220, 220]
end

end

@testset "DSSP" begin
@testset "1ASS" begin
ss = dssp("data/1ASS.pdb")
@test length(ss) == 1
@test ss_composition.(ss) == [[60, 53, 39]]
end

@testset "1ZAK" begin
ss = dssp("data/1ZAK.pdb")
@test length(ss) == 2
@test ss_composition.(ss) == [[72, 116, 32], [72, 116, 32]]
end
end

end

0 comments on commit 13b8eb3

Please sign in to comment.