Skip to content

Commit

Permalink
Rename MOIU -> MOI.Utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Mar 6, 2018
1 parent c58e6f0 commit 10842e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -19,7 +19,6 @@ addons:
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone("https://github.com/JuliaOpt/MathOptInterface.jl.git")'
- julia -e 'Pkg.clone("https://github.com/JuliaOpt/MathOptInterfaceUtilities.jl.git")'
- julia -e 'Pkg.clone(pwd())'
- julia -e 'Pkg.test("JuMP", coverage=true)'
# - julia test/hygiene.jl
Expand Down
3 changes: 1 addition & 2 deletions src/JuMP.jl
Expand Up @@ -17,9 +17,8 @@ import Base.map

import MathProgBase
import MathOptInterface
import MathOptInterfaceUtilities
const MOI = MathOptInterface
const MOIU = MathOptInterfaceUtilities
const MOIU = MOI.Utilities

using Calculus
using ReverseDiffSparse
Expand Down
2 changes: 1 addition & 1 deletion test/objective.jl
Expand Up @@ -34,6 +34,6 @@
@objective(m, Min, x^2 + 2x)
@test JuMP.objectivesense(m) == :Min
@test JuMP.isequal_canonical(JuMP.objectivefunction(m, QuadExpr), x^2 + 2x)
@test_throws TypeError JuMP.objectivefunction(m, AffExpr)
@test_throws ErrorException JuMP.objectivefunction(m, AffExpr)
end
end
4 changes: 2 additions & 2 deletions test/runtests.jl
Expand Up @@ -13,9 +13,9 @@
using JuMP
using Base.Test

using MathOptInterface, MathOptInterfaceUtilities
using MathOptInterface
const MOI = MathOptInterface
const MOIU = MathOptInterfaceUtilities
const MOIU = MOI.Utilities

#include("print.jl")
include("containers.jl")
Expand Down

0 comments on commit 10842e4

Please sign in to comment.