MCPcopy Create free account
hub / github.com/Glyphack/enderpy / test_tuple

Function test_tuple

parser/src/parser/parser.rs:3636–3661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3634
3635 #[test]
3636 fn test_tuple() {
3637 for test_case in &[
3638 "(a, b, c)",
3639 "(a,
3640 b, c)",
3641 "(a
3642 , b, c)",
3643 "(a,
3644 b,
3645 c)",
3646 "(a,
3647)",
3648 "(a, b, c,)",
3649 ] {
3650 let mut parser = Parser::new(test_case);
3651 let program = parser.parse().expect("parsing failed");
3652
3653 insta::with_settings!({
3654 description => test_case.to_string(), // the template source code
3655 snapshot_path => "../../test_data/output/",
3656 omit_expression => true // do not include the default expression
3657 }, {
3658 assert_debug_snapshot!(program);
3659 });
3660 }
3661 }
3662
3663 #[test]
3664 fn test_yield_expression() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected