Skip to content

Commit 7e52c57

Browse files
committed
Added sorting to the test for roots() of a Laurent polynomial (because of failed tests in older versions of Julia).
1 parent f18e746 commit 7e52c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/StandardBasis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ end
431431
@test roots(pNULL) == []
432432
@test sort(roots(pR)) == [1 // 2, 3 // 2]
433433

434-
@test roots(LaurentPolynomial([24,10,-15,0,1],-2:1,:z))[-4,-1,2,3]
434+
@test sort(roots(LaurentPolynomial([24,10,-15,0,1],-2:1,:z)))[-4.0,-1.0,2.0,3.0]
435435

436436
A = [1 0; 0 1]
437437
@test fromroots(A) == Polynomial(Float64[1, -2, 1])

0 commit comments

Comments
 (0)