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 34d107b commit 2763108Copy full SHA for 2763108
test/Utilities/functions.jl
@@ -434,6 +434,8 @@ end
434
function test_iteration_and_indexing_on_VectorOfVariables()
435
f = MOI.VectorOfVariables([z, w, x, y])
436
it = MOI.Utilities.eachscalar(f)
437
+ @test it isa AbstractVector{MOI.VariableIndex}
438
+ @test size(it) == (4,)
439
@test length(it) == 4
440
@test eltype(it) == MOI.VariableIndex
441
@test collect(it) == [z, w, x, y]
@@ -454,6 +456,8 @@ function test_indexing_on_VectorAffineFunction()
454
456
[2, 7, 5],
455
457
)
458
459
+ @test it isa AbstractVector{MOI.ScalarAffineFunction{Int}}
460
+ @test size(it) == (3,)
461
@test length(it) == 3
462
@test eltype(it) == MOI.ScalarAffineFunction{Int}
463
g = it[2]
0 commit comments