Skip to content

Commit 4819d90

Browse files
authored
Remove test in macros for unexpected assignment (#3220)
1 parent 0b308bf commit 4819d90

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test/test_macros.jl

-13
Original file line numberDiff line numberDiff line change
@@ -610,19 +610,6 @@ function test_Error_on_unexpected_comparison()
610610
return
611611
end
612612

613-
function test_Warn_on_unexpected_assignment()
614-
m = Model()
615-
@variable(m, x)
616-
# Julia v1.0 -> v1.3
617-
# ERROR: function getindex does not accept keyword arguments
618-
# Julia v1.3 onwards
619-
# ERROR: MethodError: no method matching getindex(::VariableRef; i=1)
620-
@test_throws Union{ErrorException,MethodError} x[i = 1]
621-
# err = ErrorException("Unexpected assignment in expression `x[i=1]`.")
622-
@test_macro_throws ErrorException @constraint(m, x[i = 1] <= 1)
623-
return
624-
end
625-
626613
function test_Lookup_in_model_scope_variable()
627614
model = Model()
628615
@variable(model, x)

0 commit comments

Comments
 (0)