diff --git a/src/distance.jl b/src/distance.jl index 2683da84..464bd451 100644 --- a/src/distance.jl +++ b/src/distance.jl @@ -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))