Skip to content

Commit

Permalink
Bug in test in < 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mfalt committed Nov 4, 2019
1 parent 3ffdf30 commit 5c2be38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions test/test_synthesis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5c2be38

Please sign in to comment.