Document empty block. Formatting.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1508936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-07-31 15:43:33 +00:00
parent e33dced746
commit 9599bfe743
1 changed files with 10 additions and 4 deletions

View File

@ -179,18 +179,24 @@ public class ExtendedBufferedReaderTest {
br = getBufferedReader(test);
assertEquals(0, br.getCurrentLineNumber());
while(br.readLine()!=null) {}
while (br.readLine() != null) {
// consume all
}
assertEquals(EOLeolct, br.getCurrentLineNumber());
br = getBufferedReader(test);
assertEquals(0, br.getCurrentLineNumber());
while(br.read()!=-1) {}
while (br.read() != -1) {
// consume all
}
assertEquals(EOLeolct, br.getCurrentLineNumber());
br = getBufferedReader(test);
assertEquals(0, br.getCurrentLineNumber());
final char[] buff = new char[10];
while(br.read(buff ,0, 3)!=-1) {}
while (br.read(buff, 0, 3) != -1) {
// consume all
}
assertEquals(EOLeolct, br.getCurrentLineNumber());
}