Пример #1
0
 public void testSkipUntilNonExistentMarkerShouldReturnEOF() throws IOException {
   final LexerSource src = newSource("abcd\n1234");
   assertEquals(RubyLexer.EOF, src.skipUntil('z'));
 }
Пример #2
0
 public void testSkipUntilShouldSkipPastNonMatchingChars() throws IOException {
   LexerSource src = newSource("abcd1234");
   src.skipUntil('1');
   assertReadShouldProduce(src, "234");
 }