MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / allows_mixed_boolean_precedence

Function allows_mixed_boolean_precedence

tests/integration/spec_rules.rs:410–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

408
409#[test]
410fn allows_mixed_boolean_precedence() {
411 let source = r#"
412main: () -> i32 {
413 x: bool = true or false and not true
414 if x {
415 return 1
416 }
417 return 0
418}
419"#;
420
421 let mut pipeline = CompilationPipeline::new();
422 pipeline.set_write_artifacts(false);
423 let result = pipeline.compile(source);
424 assert!(
425 result.is_ok(),
426 "expected mixed boolean precedence to compile successfully: {:?}",
427 result.err()
428 );
429}
430
431#[test]
432fn rejects_returning_address_of_local_variable() {

Callers

nothing calls this directly

Calls 2

set_write_artifactsMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected