From 57d8ac0a0c2d30b1da09620be8a93cc65ccb8838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Wed, 22 May 2019 19:16:49 +0200 Subject: [PATCH] Test approximatively since isapprox(0.0, 1e-20) is false --- src/Test/contquadratic.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Test/contquadratic.jl b/src/Test/contquadratic.jl index 6584282b9b..8becc6c58d 100644 --- a/src/Test/contquadratic.jl +++ b/src/Test/contquadratic.jl @@ -254,7 +254,7 @@ function qcp1test(model::MOI.ModelLike, config::TestConfig) @test MOI.get(model, MOI.ObjectiveSense()) == MOI.MAX_SENSE if config.query - @test c2f ≈ MOI.get(model, MOI.ConstraintFunction(), c2) + @test c2f ≈ MOI.get(model, MOI.ConstraintFunction(), c2) atol=atol rtol=rtol end if config.solve @@ -314,7 +314,7 @@ function qcp2test(model::MOI.ModelLike, config::TestConfig) @test MOI.get(model, MOI.ObjectiveSense()) == MOI.MAX_SENSE if config.query - @test cf ≈ MOI.get(model, MOI.ConstraintFunction(), c) + @test cf ≈ MOI.get(model, MOI.ConstraintFunction(), c) atol=atol rtol=rtol end if config.solve @@ -366,7 +366,7 @@ function qcp3test(model::MOI.ModelLike, config::TestConfig) @test MOI.get(model, MOI.ObjectiveSense()) == MOI.MIN_SENSE if config.query - @test cf ≈ MOI.get(model, MOI.ConstraintFunction(), c) + @test cf ≈ MOI.get(model, MOI.ConstraintFunction(), c) atol=atol rtol=rtol end if config.solve @@ -429,7 +429,7 @@ function _qcp4test(model::MOI.ModelLike, config::TestConfig, less_than::Bool) @test MOI.get(model, MOI.ObjectiveSense()) == MOI.MAX_SENSE if config.query - @test cf ≈ MOI.get(model, MOI.ConstraintFunction(), c) + @test cf ≈ MOI.get(model, MOI.ConstraintFunction(), c) atol=atol rtol=rtol @test quad_set == MOI.get(model, MOI.ConstraintSet(), c) end