MCPcopy Create free account
hub / github.com/endbasic/endbasic / test_parenthesis

Function test_parenthesis

core/src/lexer.rs:1584–1600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

tsFunction · 0.85
new_auto_symbolFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected