}
public void test0() throws SyntaxError {
TokenStream tok = makeTokenizer("'1' \"1\" \"ab\\\"c\" \"ab\\nc\" '\\u0123' '\\067' '\\''") ;
{
Token t = tok.next() ;
assertEquals(t.name,JavaTokens.CONST) ;
assertEquals(t.value,Character.valueOf('1')) ;
}
{
Token t = tok.next() ;
assertEquals(t.name,JavaTokens.CONST) ;
assertEquals(t.value,"1") ;
}
{
Token t = tok.next() ;
assertEquals(t.name,JavaTokens.CONST) ;
assertEquals(t.value,"ab\"c") ;
}
{
Token t = tok.next() ;
assertEquals(t.name,JavaTokens.CONST) ;
assertEquals(t.value,"ab\nc") ;
}
{
Token t = tok.next() ;
assertEquals(t.name,JavaTokens.CONST) ;
assertEquals(t.value,Character.valueOf('\u0123')) ;
}
{
Token t = tok.next() ;
assertEquals(t.name,JavaTokens.CONST) ;
assertEquals(t.value,Character.valueOf('\067')) ;
}
{
Token t = tok.next() ;
assertEquals(t.name,JavaTokens.CONST) ;
assertEquals(t.value,Character.valueOf('\'')) ;
}
}