Back out workaround for cell numbering
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2280 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
58414f72df
commit
90c2715901
@ -75,15 +75,14 @@ public class FixedWidthImporterTests extends ImporterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Assert.assertEquals(project.rows.size(), 3); // Column names count as a row?
|
Assert.assertEquals(project.rows.size(), 3); // Column names count as a row?
|
||||||
// TODO: each row has a null cell at the beginning because 1-based indexes are used
|
Assert.assertEquals(project.rows.get(1).cells.size(), 3);
|
||||||
Assert.assertEquals(project.rows.get(1).cells.size(), 4);
|
Assert.assertEquals((String)project.rows.get(1).getCellValue(0), "NDB_No");
|
||||||
Assert.assertEquals((String)project.rows.get(1).getCellValue(1), "NDB_No");
|
Assert.assertEquals((String)project.rows.get(1).getCellValue(1), "Shrt_Desc");
|
||||||
Assert.assertEquals((String)project.rows.get(1).getCellValue(2), "Shrt_Desc");
|
Assert.assertEquals((String)project.rows.get(1).getCellValue(2), "Water");
|
||||||
Assert.assertEquals((String)project.rows.get(1).getCellValue(3), "Water");
|
Assert.assertEquals(project.rows.get(2).cells.size(), 3);
|
||||||
Assert.assertEquals(project.rows.get(2).cells.size(), 4);
|
Assert.assertEquals((String)project.rows.get(2).getCellValue(0), "TooSho");
|
||||||
Assert.assertEquals((String)project.rows.get(2).getCellValue(1), "TooSho");
|
Assert.assertEquals((String)project.rows.get(2).getCellValue(1), "rt");
|
||||||
Assert.assertEquals((String)project.rows.get(2).getCellValue(2), "rt");
|
Assert.assertNull(project.rows.get(2).getCellValue(2));
|
||||||
Assert.assertNull(project.rows.get(2).getCellValue(3));
|
|
||||||
|
|
||||||
verifyGetArrayOption("columnNames", options);
|
verifyGetArrayOption("columnNames", options);
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user