Skip to content

Commit a789f50

Browse files
authored
Merge pull request #107 from JuliaAlgebra/bl/varvectest
✅ Add test for variables of polynomial vector
2 parents 66ac85f + 0f923dc commit a789f50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/polynomial.jl

+8
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,12 @@ const MP = MultivariatePolynomials
140140
@test convert(typeof(p), p) === p
141141
@test convert(Union{Nothing, typeof(p)}, p) === p
142142
end
143+
144+
@testset "Vector" begin
145+
Mod.@polyvar x y
146+
v = [x - 1, y + 1]
147+
@test nvariables(v) == 2
148+
@test variables(v)[1] == x
149+
@test variables(v)[2] == y
150+
end
143151
end

0 commit comments

Comments
 (0)