Skip to content

Commit

Permalink
More unsaved changes
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed May 28, 2019
1 parent 5d24b7d commit 7a1842d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,12 @@ end
) @NLconstraint(model, [axes(A)...], x >= 1)

@test_macro_throws ErrorException(
"In `@expression(model, [axes(A)...], 1 * x)`: cannot use splatting operator `...`."
) @expression(model, [axes(A)...], 1 * x)
"In `@expression(model, [axes(A)...], x)`: cannot use splatting operator `...`."
) @expression(model, [axes(A)...], x)

@test_macro_throws ErrorException(
"@NLexpression: cannot use splatting operator `...`."
) @NLexpression(model, [axes(A)...], 1 * x)
) @NLexpression(model, [axes(A)...], x)
end

end
Expand Down

0 comments on commit 7a1842d

Please sign in to comment.