Commit 4819d90 1 parent 0b308bf commit 4819d90 Copy full SHA for 4819d90
File tree 1 file changed +0
-13
lines changed
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -610,19 +610,6 @@ function test_Error_on_unexpected_comparison()
610
610
return
611
611
end
612
612
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
-
626
613
function test_Lookup_in_model_scope_variable ()
627
614
model = Model ()
628
615
@variable (model, x)
You can’t perform that action at this time.
0 commit comments