Skip to content

Commit

Permalink
add tests to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Nov 30, 2023
1 parent 2d3953a commit 9c11850
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/distance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ closest(x::Residue, y::Residue) = closest(x.atoms[x.range], y.atoms[y.range])
@test all(closest(coor(r1), r2) .≈ (11, 2, 3.6750402718881863))
@test all(closest(r1, coor(r2)) .≈ (11, 2, 3.6750402718881863))
@test all(closest(coor(r1), coor(r2)) .≈ (11, 2, 3.6750402718881863))

@test all(closest(r1, coor(r2[1])) .≈ (11, 1, 3.9481035953986816))
@test all(closest(coor(r1[1]), r2[1]) .≈ (1, 1, 5.121629623469468))
@test all(closest(coor(r1), r2[1]) .≈ (11, 1, 3.9481035953986816))
@test all(closest(coor(r1), coor(r2[1])) .≈ (11, 1, 3.9481035953986816))
@test all(closest(r1[1], coor(r2)) .≈ (1, 2, 5.121218702613667))
@test all(closest(coor(r1[1]), coor(r2)) .≈ (1, 2, 5.121218702613667))
@test all(closest(coor(r1[1]), r2) .≈ (1, 2, 5.121218702613667))
Expand Down

0 comments on commit 9c11850

Please sign in to comment.