From 6b1235b375270bd8a9839ae53fced8a49d422aae Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Fri, 13 Sep 2019 12:45:50 +0300 Subject: [PATCH] Fix broken test The order of the calculated eigenvalues has been changed in the newest Julia versions. Fixed by sorting the lists before comparison. Closes issue #232. --- test/test_elasticity_tet10_stiffness_matrix.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_elasticity_tet10_stiffness_matrix.jl b/test/test_elasticity_tet10_stiffness_matrix.jl index d85cf3b..e0de522 100644 --- a/test/test_elasticity_tet10_stiffness_matrix.jl +++ b/test/test_elasticity_tet10_stiffness_matrix.jl @@ -34,4 +34,4 @@ eigs_expected = [8809.45, 4936.01, 2880.56, 2491.66, 2004.85, 195.832, 104.008, 72.7562, 64.4376, 53.8515, 23.8417, 16.6354, 9.54682, 6.93361, 2.22099, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] -@test isapprox(eigs, eigs_expected; atol=1.0e-2) +@test isapprox(sort(eigs), sort(eigs_expected); atol=1.0e-2)