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:
Tom Morris 2011-10-06 20:29:53 +00:00
parent 58414f72df
commit 90c2715901

View File

@ -75,15 +75,14 @@ public class FixedWidthImporterTests extends ImporterTest {
}
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(), 4);
Assert.assertEquals((String)project.rows.get(1).getCellValue(1), "NDB_No");
Assert.assertEquals((String)project.rows.get(1).getCellValue(2), "Shrt_Desc");
Assert.assertEquals((String)project.rows.get(1).getCellValue(3), "Water");
Assert.assertEquals(project.rows.get(2).cells.size(), 4);
Assert.assertEquals((String)project.rows.get(2).getCellValue(1), "TooSho");
Assert.assertEquals((String)project.rows.get(2).getCellValue(2), "rt");
Assert.assertNull(project.rows.get(2).getCellValue(3));
Assert.assertEquals(project.rows.get(1).cells.size(), 3);
Assert.assertEquals((String)project.rows.get(1).getCellValue(0), "NDB_No");
Assert.assertEquals((String)project.rows.get(1).getCellValue(1), "Shrt_Desc");
Assert.assertEquals((String)project.rows.get(1).getCellValue(2), "Water");
Assert.assertEquals(project.rows.get(2).cells.size(), 3);
Assert.assertEquals((String)project.rows.get(2).getCellValue(0), "TooSho");
Assert.assertEquals((String)project.rows.get(2).getCellValue(1), "rt");
Assert.assertNull(project.rows.get(2).getCellValue(2));
verifyGetArrayOption("columnNames", options);
try {