MCPcopy Create free account
hub / github.com/PRQL/prql / test_binary

Function test_binary

prqlc/prqlc/src/codegen/ast.rs:602–610  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

600
601 #[test]
602 fn test_binary() {
603 assert_is_formatted(r#"let a = 5 * (4 + 3) ?? 5 / 2 // 2 == 1 and true"#);
604
605 assert_is_formatted(r#"let a = 5 / 2 / 2"#);
606 assert_is_formatted(r#"let a = 5 / (2 / 2)"#);
607
608 assert_is_formatted(r#"let a = (5 ** 2) ** 2"#);
609 assert_is_formatted(r#"let a = 5 ** 2 ** 2"#);
610 }
611
612 #[test]
613 fn test_func() {

Callers

nothing calls this directly

Calls 1

assert_is_formattedFunction · 0.85

Tested by

no test coverage detected