Skip to content

Commit e8d07eb

Browse files
committed
adds test for I=R situation when solving
1 parent c39f57e commit e8d07eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ end
4545
Base.parent(I::Ideal) = Nemo.parent(I.gens[1])
4646

4747
Base.show(io::IO, I::Ideal) = print(io, I.gens)
48-
Base.show(io::IO, R::RationalParametrization) = R.vars == Symbol[] ? print(io, "Solution set is empty") : print(io, R)
48+
Base.show(io::IO, R::RationalParametrization) = R.vars == Symbol[] ? print(io, "Solution set is empty.") : print(io, R)
4949

5050
Base.getindex(I::Ideal, idx::Int) = I.gens[idx]

test/algorithms/solvers.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@
3939
@test I.rat_param.param[1] == p1
4040
@test I.rat_param.param[2] == p2
4141
@test I.rat_param.param[3] == p3
42+
43+
I = Ideal([x1^2-x2, x1*x3-x4, x2*x4-12, x4^3-x3^2])
44+
real_solutions(I)
45+
@test I.rat_param.vars == Symbol[]
4246
end

0 commit comments

Comments
 (0)