Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jan 24, 2021
1 parent 57bbafa commit cbd1981
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ function expressions_test(
z = @inferred (x * x)^3
@test z.pow == 6
end

@testset "ndims(::QuadExpr)" begin
model = ModelType()
@variable(model, x)
@test ndims(x^2 + 1) == 0
end
end

@testset "Expressions for JuMP.Model" begin
Expand Down

0 comments on commit cbd1981

Please sign in to comment.