Skip to content

Commit 29a3f51

Browse files
authored
Merge pull request #38 from SCIP-Interfaces/rs/rm_factcheck
Remove FactCheck dependency
2 parents 9592057 + a604853 commit 29a3f51

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

src/SCIP.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function __init__()
2727
csip_installed = CSIPversion()
2828
if csip_installed != csip_required
2929
depsdir = realpath(joinpath(dirname(@__FILE__),"..","deps"))
30-
error("Current CSIP version installed is $(csip_installed), but we require $(csip_required). On Linux, delete the contents of the `$depsdir` directory except for `build.jl`, then rerun Pkg.build(\"SCIP\").")
30+
error("Current CSIP version installed is $(csip_installed), but we require $(csip_required). On Linux, delete the contents of the `$depsdir` directory except for `build.jl` and `csip_version.jl`, then rerun Pkg.build(\"SCIP\").")
3131
end
3232
end
3333

test/REQUIRE

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
JuMP 0.16
22
GLPKMathProgInterface
3-
FactCheck

test/mixintprog.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
facts("solving MIP with mixintprog") do
1+
@testset "solving MIP with mixintprog" begin
22
solver = SCIPSolver("display/verblevel", 0)
33

44
# integer knapsack problem
55
sol = mixintprog(-[5,3,2,7,4],Float64[2 8 4 2 5],'<',10,:Int,0,1,solver)
6-
@fact sol.status --> :Optimal
7-
@fact sol.objval --> roughly(-16.0)
8-
@fact sol.sol --> roughly([1.0, 0.0, 0.0, 1.0, 1.0])
6+
@test sol.status == :Optimal
7+
@test sol.objval -16.0
8+
@test sol.sol [1.0, 0.0, 0.0, 1.0, 1.0]
99
end

test/more_tests.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# todo: find a meaningful name for this file
2-
facts("testing more mpb interface methods") do
2+
@testset "testing more mpb interface methods" begin
33
m = MathProgBase.LinearQuadraticModel(SCIPSolver("display/verblevel", 0))
44

55
# take a bit more time integer problem
@@ -10,12 +10,12 @@ facts("testing more mpb interface methods") do
1010
lb = [40600 -92375]
1111
ub = lb
1212
MathProgBase.loadproblem!(m, A, l, u, c, lb, ub, :Min)
13-
@fact MathProgBase.numconstr(m) --> 2
14-
@fact MathProgBase.numvar(m) --> 3
13+
@test MathProgBase.numconstr(m) == 2
14+
@test MathProgBase.numvar(m) == 3
1515

1616
MathProgBase.setvartype!(m, [:Int, :Int, :Int])
1717
MathProgBase.optimize!(m)
18-
@fact MathProgBase.status(m) --> :Optimal
19-
@fact MathProgBase.getsolvetime(m) --> greater_than(0.001)
20-
@fact MathProgBase.getsolution(m) --> roughly([750, -200, -25])
18+
@test MathProgBase.status(m) == :Optimal
19+
@test MathProgBase.getsolvetime(m) >= 0.001
20+
@test MathProgBase.getsolution(m) [750, -200, -25]
2121
end

test/runtests.jl

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
using Base.Test
12
using SCIP
23
using MathProgBase
3-
using FactCheck
44

55
include("more_tests.jl")
66
include("mixintprog.jl")
@@ -45,6 +45,3 @@ include(joinpath(Pkg.dir("JuMP"),"test","qcqpmodel.jl"))
4545
include(joinpath(Pkg.dir("JuMP"),"test","callback.jl"))
4646
include(joinpath(Pkg.dir("JuMP"),"test","nonlinear.jl"))
4747
#include(joinpath(Pkg.dir("JuMP"),"test","sdp.jl"))
48-
49-
# return proper code (e.g. for TravisCI)
50-
FactCheck.exitstatus()

0 commit comments

Comments
 (0)