Skip to content

Commit 088f5e2

Browse files
authored
Update test_semilinear1d.py
1 parent e9facbd commit 088f5e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/algorithms/test_semilinear1d.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def test_convergence_rate():
233233

234234
# Convergence dual gap
235235
rates = convergence_rates(dual_gaps, [1.0/n for n in ns])
236-
236+
assert dual_gaps < 0
237+
237238
assert np.isclose(np.median(rates), 2.0, atol=0.2)
238239

239240
X = np.ones((np.size(ns), 2)); X[:, 1] = np.log([1.0/n for n in ns])

0 commit comments

Comments
 (0)