Esempio n. 1
0
 @Test
 public void testExamineStatement_3() {
   Parser parser = grammar.examineStatement();
   assertNotNull(parser);
   TestTokenizer tokenizer =
       new TestTokenizer(SourceFormat.FREE, " EXAMINE foo TALLYING LEADING     \"bar\" ");
   assertTrue(parser.accepts(tokenizer));
   assertTrue(tokenizer.isWhereExpected());
 }
Esempio n. 2
0
 @Test
 public void testExamineStatement_10() {
   Parser parser = grammar.examineStatement();
   assertNotNull(parser);
   TestTokenizer tokenizer =
       new TestTokenizer(
           SourceFormat.FREE, " EXAMINE foo REPLACING UNTIL FIRST    \"bar\" BY \"baz\" ");
   assertTrue(parser.accepts(tokenizer));
   assertTrue(tokenizer.isWhereExpected());
 }