Skip to content

Commit 4017eb3

Browse files
committed
Correction of the test for fromroots().
1 parent c3299a1 commit 4017eb3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/StandardBasis.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,12 @@ end
443443
plarge = 8.362779449448982e41 - 2.510840694154672e57x + 4.2817430781178795e44x^2 - 1.6225927682921337e31x^3 + 1.0x^4 # #120
444444
@test length(roots(plarge)) == 4
445445

446-
a = P([1,1,1])*P([1,0.5,1])*P([1,1]) # two complex conjugate pole pairs and one real pole
447-
r = roots(a)
448-
@test (fromroots(r) a) & isreal(coeffs(a)) # the coeff should be real
446+
@test begin
447+
a = P([1,1,1])*P([1,0.5,1])*P([1,1]) # two complex conjugate pole pairs and one real pole
448+
r = roots(a)
449+
b = fromroots(r)
450+
(b a) & isreal(coeffs(b)) # the coeff should be real
451+
end
449452
end
450453
end
451454

0 commit comments

Comments
 (0)