We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a3484 commit 67a1546Copy full SHA for 67a1546
test/C_wrapper.jl
@@ -1003,8 +1003,15 @@ end
1003
end
1004
1005
@testset "knitroampl" begin
1006
- @test occursin(
1007
- "AMPL/Knitro",
1008
- sprint(io -> run(pipeline(`$(KNITRO.amplexe) -v`; stdout=io))),
1009
- )
+ if KNITRO.amplexe isa String
+ @test occursin(
+ "AMPL/Knitro",
+ sprint(io -> run(pipeline(`$(KNITRO.amplexe) -v`; stdout=io))),
1010
+ )
1011
+ else
1012
1013
1014
+ sprint(io -> run(pipeline(`$(KNITRO.amplexe()) -v`; stdout=io))),
1015
1016
+ end
1017
0 commit comments