Skip to content

Commit ca8fb3f

Browse files
committed
Add and remove pytest in cmake file
1 parent 977919e commit ca8fb3f

2 files changed

Lines changed: 20 additions & 15 deletions

File tree

‎slycot/tests/CMakeLists.txt‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ set(PYSOURCE
77
test_ag08bd.py
88
test_examples.py
99
test_exceptions.py
10-
test_mb.py
11-
test_mc.py
10+
test_mb03rd.py
11+
test_mb03vd.py
12+
test_mb03vy.py
13+
test_mb03wd.py
14+
test_mb05md.py
15+
test_mb05nd.py
16+
test_mc01td.py
1217
test_sb.py
1318
test_analysis.py
1419
test_transform.py

‎slycot/tests/test_mb03rd.py‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,21 @@ def test_mb03rd(self):
7777
test1_n, A, X, 'N', sort, test1_pmax, test1_tol)
7878
assert Xr is None
7979

80-
def test_mb03rd_default():
81-
# regression: mb03rd was failing with no third arg (X) supplied
82-
A = np.array([[ 6, -1, -7, -2, 2],
83-
[-3, 4, 2, -7, 6],
84-
[-6, -9, -3, -1, 10],
85-
[-2, -4, 1, 5, 7],
86-
[-7, -5, -6, 6, 7]])
80+
def test_mb03rd_default(self):
81+
# regression: mb03rd was failing with no third arg (X) supplied
82+
A = np.array([[ 6, -1, -7, -2, 2],
83+
[-3, 4, 2, -7, 6],
84+
[-6, -9, -3, -1, 10],
85+
[-2, -4, 1, 5, 7],
86+
[-7, -5, -6, 6, 7]])
8787

88-
Aschur, Tschur = schur(A)
88+
Aschur, Tschur = schur(A)
8989

90-
X = Tschur.copy()
90+
X = Tschur.copy()
9191

92-
Ar, Xr, blsize, W = mb03rd(Aschur.shape[0], Aschur, X, 'U', 'N', pmax=1.0, tol=0.0)
92+
Ar, Xr, blsize, W = mb03rd(Aschur.shape[0], Aschur, X, 'U', 'N', pmax=1.0, tol=0.0)
9393

94-
Ar2, Xr2, blsize2, W2 = mb03rd(Aschur.shape[0], Aschur)
94+
Ar2, Xr2, blsize2, W2 = mb03rd(Aschur.shape[0], Aschur)
9595

96-
assert_allclose(Ar, Ar2)
97-
assert_allclose(Xr, Tschur.dot(Xr2))
96+
assert_allclose(Ar, Ar2)
97+
assert_allclose(Xr, Tschur.dot(Xr2))

0 commit comments

Comments
 (0)