223224225226227228229230231232233
} assertEquals(contents.charAt(i), x) ; assertEquals(i+1, r.getPosition()) ; checkLineCol(r, line, col) ; } assertTrue(r.eof()) ; } private void contains(PeekReader r, String contents) { for ( int i = 0 ; i < contents.length(); i++ )
7980818283848586878889
checkLineCol(r, INIT_LINE, i+INIT_COL) ; long z = r.getPosition() ; assertEquals(i, r.getPosition()) ; assertEquals(c.charAt(i), r.readChar()) ; } assertTrue(r.eof()) ; } @Test public void read4() { position("abcde") ;