Skip to content

Commit

Permalink
Merge 47d3f22 into 50573d6
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 19, 2018
2 parents 50573d6 + 47d3f22 commit ae5bca0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/operator.jl
Expand Up @@ -636,12 +636,12 @@ function operators_test(ModelType::Type{<:JuMP.AbstractModel}, VariableRefType::
for x2 in (OffsetArray(x, -length(x)), view(x, :), sparse(x))
@test elements_equal(+x, +x2)
@test elements_equal(-x, -x2)
@test elements_equal(x .+ (first(x),), x2 .+ (first(x2),))
@test elements_equal(x .- (first(x),), x2 .- (first(x2),))
@test elements_equal((first(x),) .- x, (first(x2),) .- x2)
@test elements_equal((first(x),) .+ x, (first(x2),) .+ x2)
@test elements_equal(x .+ first(x), x2 .+ first(x2))
@test elements_equal(x .- first(x), x2 .- first(x2))
@test elements_equal(first(x) .- x, first(x2) .- x2)
@test elements_equal(first(x) .+ x, first(x2) .+ x2)
@test elements_equal(2 .* x, 2 .* x2)
@test elements_equal((first(x),) .+ x2, (first(x2),) .+ x)
@test elements_equal(first(x) .+ x2, first(x2) .+ x)
@test sum(x) == sum(x2)
if !JuMP.one_indexed(x2)
@test_throws DimensionMismatch x + x2
Expand Down

0 comments on commit ae5bca0

Please sign in to comment.