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 6baf622 commit 48c0fedCopy full SHA for 48c0fed
test/Utilities/functions.jl
@@ -1873,6 +1873,19 @@ function test_ScalarNonlinearFunction_count_map_indices_and_print()
1873
return
1874
end
1875
1876
+function test_vector_type()
1877
+ for T in (Int, Float64)
1878
+ @test MOI.Utilies.vector_type(T) == Vector{T}
1879
+ @test MOI.Utilies.vector_type(MOI.VariableIndex) ==
1880
+ MOI.VectorOfVariables
1881
+ @test MOI.Utilies.vector_type(MOI.ScalarAffineFunction{T}) ==
1882
+ MOI.VectorAffineFunction{T}
1883
+ @test MOI.Utilies.vector_type(MOI.ScalarQuadraticFunction{T}) ==
1884
+ MOI.VectorQuadraticFunction{T}
1885
+ end
1886
+ return
1887
+end
1888
+
1889
end # module
1890
1891
TestFunctions.runtests()
0 commit comments