Skip to content

Commit a54405e

Browse files
committed
sort by real
1 parent 76e72c6 commit a54405e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: lib/ControlSystemsBase/test/test_matrix_comps.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Test, LinearAlgebra
12
@testset "test_matrix_comps" begin
23
A = [-0.21 0.2; 0.2 -0.21]
34
B = 0.01*[1 0; 0 1]
@@ -8,7 +9,7 @@ sysr, G = balreal(sys)
89

910
@test gram(sysr, :c) diagm(G)
1011
@test gram(sysr, :o) diagm(G)
11-
@test sort(poles(sysr)) sort(poles(sys))
12+
@test sort(poles(sysr), by=real) sort(poles(sys), by=real)
1213

1314
sysb,T = ControlSystemsBase.balance_statespace(sys)
1415
@test similarity_transform(sysb, T) sys

0 commit comments

Comments
 (0)