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