/**
* Comments should be invisible in the output other than separating tokens
*/
@Test
public void testComments() {
final BaseJavaCCParserImplTokenManager tokenizer1 = tokenizer("/*\nCopyright*/hello//comment\nworld/**another comment*/oh");
check(tokenizer1, "hello", IDENTIFIER, 2);
check(tokenizer1, "world", IDENTIFIER, 3);
check(tokenizer1, "oh", IDENTIFIER, 3);
check(tokenizer1, "<EOF>", EOF, 3);
final BaseJavaCCParserImplTokenManager tokenizer2 = tokenizer("/**/hello");
check(tokenizer2, "hello", IDENTIFIER, 1);
check(tokenizer2, "<EOF>", EOF, 1);
final BaseJavaCCParserImplTokenManager tokenizer3 = tokenizer("/***/hello");
check(tokenizer3, "hello", IDENTIFIER, 1);
check(tokenizer3, "<EOF>", EOF, 1);
final BaseJavaCCParserImplTokenManager tokenizer4 = tokenizer("/****/hello");
check(tokenizer4, "hello", IDENTIFIER, 1);
check(tokenizer4, "<EOF>", EOF, 1);
final BaseJavaCCParserImplTokenManager tokenizer5 = tokenizer("/*** */hello");
check(tokenizer5, "hello", IDENTIFIER, 1);
check(tokenizer5, "<EOF>", EOF, 1);
final BaseJavaCCParserImplTokenManager tokenizer6 = tokenizer("/* ***/hello");
check(tokenizer6, "hello", IDENTIFIER, 1);
check(tokenizer6, "<EOF>", EOF, 1);
final BaseJavaCCParserImplTokenManager tokenizer7 = tokenizer("/* **/hello");
check(tokenizer7, "hello", IDENTIFIER, 1);
check(tokenizer7, "<EOF>", EOF, 1);
}