-
Bug
-
Resolution: Fixed
-
Normal
-
3.0.0 RC
Problem Description:
When using API to get the row index of a named range of cells, it returns a wrong row value.
for example a named range has 6 cells and its first row is at row 12, so namedRange.getRow() should return 11 but it returns 0.
java.lang.AssertionError: Expected: <11> but: was <0> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.junit.Assert.assertThat(Assert.java:865)
Reproducing Steps:
1. run test case
run automatic test case CellDataTest.testNamedRange() of the project zss.test of zkspreadsheet
2. use attached file.
use API to get row like Ranges.range(sheet, "TestRange1").getRow()