()
| 1582 | |
| 1583 | #[test] |
| 1584 | fn test_parenthesis() { |
| 1585 | do_ok_test( |
| 1586 | "(a) (\"foo\") (3)", |
| 1587 | &[ |
| 1588 | ts(Token::LeftParen, 1, 1, 1), |
| 1589 | ts(new_auto_symbol("a"), 1, 2, 1), |
| 1590 | ts(Token::RightParen, 1, 3, 1), |
| 1591 | ts(Token::LeftParen, 1, 5, 1), |
| 1592 | ts(Token::Text("foo".to_owned()), 1, 6, 5), |
| 1593 | ts(Token::RightParen, 1, 11, 1), |
| 1594 | ts(Token::LeftParen, 1, 13, 1), |
| 1595 | ts(Token::Integer(3), 1, 14, 1), |
| 1596 | ts(Token::RightParen, 1, 15, 1), |
| 1597 | ts(Token::Eof, 1, 16, 0), |
| 1598 | ], |
| 1599 | ); |
| 1600 | } |
| 1601 | |
| 1602 | #[test] |
| 1603 | fn test_peekable_lexer() { |
nothing calls this directly
no test coverage detected