From b1d42dd8b5d9eefc361394fceae3bc3b122b6eac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Jun 2023 06:52:05 +1000 Subject: [PATCH] CompatHelper: bump compat for AbstractDifferentiation to 0.5, (keep existing compat) (#151) * CompatHelper: bump compat for AbstractDifferentiation to 0.5, (keep existing compat) * improve test --------- Co-authored-by: CompatHelper Julia Co-authored-by: Mohamed Tarek --- Project.toml | 2 +- test/truss_topopt_problems/test_buckling_optimize.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 91fac43e..6edf6900 100644 --- a/Project.toml +++ b/Project.toml @@ -46,7 +46,7 @@ WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [compat] -AbstractDifferentiation = "0.4" +AbstractDifferentiation = "0.4, 0.5" ChainRulesCore = "1" ColorSchemes = "3" Distributions = "0.24, 0.25" diff --git a/test/truss_topopt_problems/test_buckling_optimize.jl b/test/truss_topopt_problems/test_buckling_optimize.jl index 0a27eb0a..fcb58b32 100644 --- a/test/truss_topopt_problems/test_buckling_optimize.jl +++ b/test/truss_topopt_problems/test_buckling_optimize.jl @@ -179,7 +179,7 @@ gm_ins_dir = joinpath(@__DIR__, "instances", "ground_meshes"); @test_throws PosDefException cholesky(S1) @test isfinite(logdet(cholesky(S2))) - @test minimum(ev2) ≈ 0.001 atol = 0.002 + @test 0 < minimum(ev2) < 0.02 @test maximum(ev2) ≈ 3250 rtol = 0.001 # using Makie