assertEquals(
"Sheet1\n" +
"1000.0\t1.0\t5.0\n" +
- "2000.0\t2.0\n" +
- "3000.0\t3.0\n" +
- "4000.0\t4.0\n" +
- "5000.0\t5.0\n" +
+ "2000.0\t2.0\t\n" +
+ "3000.0\t3.0\t\n" +
+ "4000.0\t4.0\t\n" +
+ "5000.0\t5.0\t\n" +
"Sheet2\nSheet3\n",
extractor.getText()
);
assertEquals(
"Sheet1\n" +
"1000.0\t1.0\tSUMIF(A1:A5,\">4000\",B1:B5)\n" +
- "2000.0\t2.0\n" +
- "3000.0\t3.0\n" +
- "4000.0\t4.0\n" +
- "5000.0\t5.0\n" +
+ "2000.0\t2.0\t\n" +
+ "3000.0\t3.0\t\n" +
+ "4000.0\t4.0\t\n" +
+ "5000.0\t5.0\t\n" +
"Sheet2\nSheet3\n",
extractor.getText()
);
assertTrue(def.startsWith(
"Sheet1\n" +
"&[TAB]\t\n" +
- "Hello\n" +
- "11.0\t23.0\n"
+ "Hello\t\n" +
+ "11.0\t23.0\t\n"
));
assertTrue(padded.startsWith(
"Sheet1\n" +
"&[TAB]\t\n" +
- "Hello\n" +
- "11.0\t\t\t23.0\n"
+ "Hello\t\t\t\t\t\t\t\t\t\t\t\n" +
+ "11.0\t\t\t23.0\t\t\t\t\t\t\t\t\n"
));
}