File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 136136"""
137137struct ListOfNonstandardBridges{T} <: MOI.AbstractOptimizerAttribute end
138138
139- attribute_value_type (:: ListOfNonstandardBridges ) = Vector{Type}
139+ MOI . attribute_value_type (:: ListOfNonstandardBridges ) = Vector{Type}
140140
141141MOI. is_copyable (:: ListOfNonstandardBridges ) = false
142142
Original file line number Diff line number Diff line change @@ -1978,16 +1978,20 @@ function MOI.get(
19781978 :: OptimizerWithBridgeListOfNonstandardBridges ,
19791979 :: MOI.Bridges.ListOfNonstandardBridges{T} ,
19801980) where {T}
1981- return [BridgeListOfNonstandardBridges{T}]
1981+ return Type [BridgeListOfNonstandardBridges{T}]
19821982end
19831983
1984- function test_toadd ()
1984+ function test_ListOfNonstandardBridges ()
19851985 b = MOI. Bridges. full_bridge_optimizer (
19861986 OptimizerWithBridgeListOfNonstandardBridges (),
19871987 Int,
19881988 )
19891989 @test MOI. Bridges. has_bridge (b, BridgeListOfNonstandardBridges{Int})
19901990 @test ! MOI. Bridges. has_bridge (b, BridgeListOfNonstandardBridges{Float64})
1991+ attr = MOI. Bridges. ListOfNonstandardBridges {Int} ()
1992+ ret = MOI. get (b, attr)
1993+ @test ret isa MOI. attribute_value_type (attr)
1994+ return
19911995end
19921996
19931997function test_hermitian (T = Float64)
You can’t perform that action at this time.
0 commit comments