tadd test of top-level contact search function - Granular.jl - Julia package fo… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit fd905feff759e602d9239e0f0b64bb0a05206678 | |
parent e900407487fced84a9c86eafc42301d8fa3e555f | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 20 Apr 2017 10:10:03 -0400 | |
add test of top-level contact search function | |
Diffstat: | |
M test/contact-search-and-geometry.jl | 10 ++++++++++ | |
1 file changed, 10 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/test/contact-search-and-geometry.jl b/test/contact-search-and-geom… | |
t@@ -26,3 +26,13 @@ Base.Test.@test 1 == length(sim.overlaps) | |
Base.Test.@test 1 == length(sim.contact_pairs) | |
Base.Test.@test_approx_eq [1, 2] sim.contact_pairs[1] | |
Base.Test.@test_approx_eq [-2., 0.] sim.overlaps[1] | |
+ | |
+ | |
+info("Testing findContacts(...)") | |
+sim = deepcopy(sim_copy) | |
+SeaIce.findContacts!(sim) | |
+ | |
+Base.Test.@test 1 == length(sim.overlaps) | |
+Base.Test.@test 1 == length(sim.contact_pairs) | |
+Base.Test.@test_approx_eq [1, 2] sim.contact_pairs[1] | |
+Base.Test.@test_approx_eq [-2., 0.] sim.overlaps[1] |