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

Function test_named_expression

parser/src/parser/parser.rs:3619–3633  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3617
3618 #[test]
3619 fn test_named_expression() {
3620 {
3621 let test_case = &"(a := b)";
3622 let mut parser = Parser::new(test_case);
3623 let program = parser.parse().expect("parsing failed");
3624
3625 insta::with_settings!({
3626 description => test_case.to_string(), // the template source code
3627 snapshot_path => "../../test_data/output/",
3628 omit_expression => true // do not include the default expression
3629 }, {
3630 assert_debug_snapshot!(program);
3631 });
3632 }
3633 }
3634
3635 #[test]
3636 fn test_tuple() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected