|
22 | 22 | ] |
23 | 23 | rat_sols = Vector{QQFieldElem}[[1, 0, 0, 0], [1//3, 0, 0, 1//3]] |
24 | 24 |
|
25 | | - @test sols == real_solutions(I) |
26 | | - @test inter_sols == real_solutions(I, interval=true) |
27 | | - @test rat_sols == rational_solutions(I) |
28 | | - @test I.real_sols == real_solutions(I) |
| 25 | + @test issetequal(sols, real_solutions(I)) |
| 26 | + @test issetequal(inter_sols, real_solutions(I, interval=true)) |
| 27 | + @test issetequal(rat_sols, rational_solutions(I)) |
| 28 | + @test issetequal(I.real_sols, real_solutions(I)) |
29 | 29 | @test iszero(I.dim) |
30 | 30 |
|
31 | 31 | C, x = polynomial_ring(QQ, "x") |
|
69 | 69 | I = Ideal([R(0)]) |
70 | 70 | @test_throws ErrorException real_solutions(I) |
71 | 71 | I = Ideal([x-1,y+2,R(0)]) |
72 | | - @test sort(real_solutions(I)) == sort(Vector{QQFieldElem}[[1, -2]]) |
| 72 | + @test issetequal(real_solutions(I), Vector{QQFieldElem}[[1, -2]]) |
73 | 73 |
|
74 | 74 | # check variable permutation |
75 | 75 | I = Ideal([x^2-1, y]) |
76 | 76 | sols = Vector{QQFieldElem}[ |
77 | 77 | [-1, 0], |
78 | 78 | [1, 0] |
79 | 79 | ] |
80 | | - @test sort(sols) == sort(real_solutions(I)) |
| 80 | + @test issetequal(sols, real_solutions(I)) |
81 | 81 |
|
82 | 82 | I = Ideal([x^2-1, y^2]) |
83 | | - @test sort(sols) == sort(real_solutions(I)) |
| 83 | + @test issetequal(sols, real_solutions(I)) |
84 | 84 | end |
0 commit comments