Skip to content

Commit dbcb746

Browse files
committed
🔬 more test
1 parent fb20e90 commit dbcb746

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/test_merged_cells.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from pyexcel_xlsx import get_data
3-
from pyexcel_xlsx.xlsxr import MergedCell
3+
from pyexcel_xlsx.xlsxr import MergedCell, convert_coordinate
44
from nose.tools import eq_
55

66

@@ -81,6 +81,14 @@ def test_merged_cell_class():
8181
'8-8', '8-9']
8282
eq_(keys, expected)
8383
eq_(merged_cell, test_dict['7-1'])
84+
eq_(merged_cell.bottom_row(), 8)
85+
eq_(merged_cell.right_column(), 10)
86+
87+
88+
def test_convert_coordinate():
89+
result = convert_coordinate('B5')
90+
expected = (5, 2)
91+
eq_(result, expected)
8492

8593

8694
def get_fixture(file_name):

0 commit comments

Comments
 (0)