8000 added `test_gridspec.py` for testing gridspec. · matplotlib/matplotlib@4c1abe4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c1abe4

Browse files
committed
added test_gridspec.py for testing gridspec.
Added test to check if repeated calls to to `gs[n, m]` are equal.
1 parent 908b31b commit 4c1abe4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/tests/test_gridspec.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import matplotlib.gridspec as gridspec
2+
from nose.tools import assert_equal
3+
4+
5+
def test_equal():
6+
gs = gridspec.GridSpec(2, 1)
7+
assert_equal(gs[0, 0], gs[0, 0])
8+
assert_equal(gs[:, 0], gs[:, 0])

0 commit comments

Comments
 (0)
0