@SuppressWarnings("empty-statement") public void testLinesAndOffsetsAreReported() throws IOException { LexerSource src = newSource("a\nb\nc\nd\n"); while (src.read() != RubyLexer.EOF) ; assertEquals(4, src.getLine()); assertEquals(8, src.getOffset()); }