void () { Lexer lexer = setupLexer("s=\"\\ndef\";"); assertEquals("s", nextToken(lexer)); assertEquals("=", nextToken(lexer)); assertEquals("\"", nextToken(lexer)); assertEquals("\\n", nextToken(lexer)); assertEquals("def\"", nextToken(lexer)); assertEquals(";", nextToken(lexer)); assertNull(lexer.getTokenType()); }