diff --git a/src/utilities.jl b/src/utilities.jl index 15d125100..3465ee25f 100644 --- a/src/utilities.jl +++ b/src/utilities.jl @@ -27,7 +27,7 @@ end # Allocate for maxiumum possible length of polynomial vector? # # This function rely on that the every complex roots is followed by its exact conjugate, -# and that the first complex root in each pair has imaginary real part. This formaat is always +# and that the first complex root in each pair has positive real part. This format is always # returned by LAPACK routines for eigenvalues. function roots2real_poly_factors(roots::Vector{cT}) where cT <: Number T = real(cT) diff --git a/test/test_synthesis.jl b/test/test_synthesis.jl index b0b11e032..ceb5a2e7e 100644 --- a/test/test_synthesis.jl +++ b/test/test_synthesis.jl @@ -63,11 +63,11 @@ A = randn(3,3) B = randn(3,1) p = [3.0,2,1] K = ControlSystems.acker(A,B,p) -@test eigvals(A-B*K, sortby=nothing) ≈ p +@test eigvalsnosort(A-B*K) ≈ p p = [-1+im, -1-im, -1] K = ControlSystems.acker(A,B,p) -@test eigvals(A-B*K, sortby=nothing) ≈ p +@test eigvalsnosort(A-B*K) ≈ p end end