Skip to content

Commit 5d32d5e

Browse files
committed
adds tests for rational_solutions
1 parent ce79172 commit 5d32d5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/algorithms/solvers.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
[7087075322218650694049//37778931862957161709568, 1480060550928923391483//18889465931478580854784, 2780329556045248126029//37778931862957161709568, 38421910449864642395061//151115727451828646838272],
1313
[196765270119568550571//590295810358705651712, 0, 1//2361183241434822606848, 787061080478274202283//2361183241434822606848]
1414
]
15+
rat_sols = Vector{fmpq}[[49, 0, 0, 0], [49//3, 0, 0, 1//3]]
16+
1517
@test sols == real_solutions(I)
18+
@test rat_sols == rational_solutions(I)
1619
@test I.real_sols == real_solutions(I)
1720

1821
C, x = PolynomialRing(QQ, "x")

0 commit comments

Comments
 (0)