()
| 384 | |
| 385 | #[test] |
| 386 | fn allows_newline_separated_struct_fields() { |
| 387 | // Newlines terminate statements, so struct fields may be separated by newlines. |
| 388 | let source = r#" |
| 389 | struct Point { |
| 390 | x: f32 |
| 391 | y: f32 |
| 392 | } |
| 393 | |
| 394 | main: () -> i32 { |
| 395 | return 0 |
| 396 | } |
| 397 | "#; |
| 398 | |
| 399 | let mut pipeline = CompilationPipeline::new(); |
| 400 | pipeline.set_write_artifacts(false); |
| 401 | let result = pipeline.compile(source); |
| 402 | assert!( |
| 403 | result.is_ok(), |
| 404 | "expected newline-separated struct fields to compile: {:?}", |
| 405 | result.err() |
| 406 | ); |
| 407 | } |
| 408 | |
| 409 | #[test] |
| 410 | fn allows_mixed_boolean_precedence() { |
nothing calls this directly
no test coverage detected