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

Function test_parse_bool_op

parser/src/parser/parser.rs:3587–3600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3585
3586 #[test]
3587 fn test_parse_bool_op() {
3588 for test_case in &["a or b", "a and b", "a or b or c", "a and b or c"] {
3589 let mut parser = Parser::new(test_case);
3590 let program = parser.parse().expect("parsing failed");
3591
3592 insta::with_settings!({
3593 description => test_case.to_string(), // the template source code
3594 snapshot_path => "../../test_data/output/",
3595 omit_expression => true // do not include the default expression
3596 }, {
3597 assert_debug_snapshot!(program);
3598 });
3599 }
3600 }
3601
3602 #[test]
3603 fn test_parse_unary_op() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected