Skip to content

Commit 15f4a6f

Browse files
committed
More tests
1 parent e529302 commit 15f4a6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Utilities/parser.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ function test_parse_unrecognized_expression()
441441
ErrorException("Unrecognized expression []"),
442442
MOI.Utilities.loadfromstring!(model, "[]"),
443443
)
444+
@test_throws(
445+
ErrorException("Unrecognized expression foo(x)"),
446+
MOI.Utilities.loadfromstring!(model, "variables: x\nfoo(x)"),
447+
)
444448
return
445449
end
446450

0 commit comments

Comments
 (0)