roc/crates/compiler/can/tests/test_can_expr.rs
2024-11-08 00:55:04 -05:00

13 lines
286 B
Rust

#[cfg(test)]
mod test_can_expr {
use roc_can::expr::Expr;
use test_compile::can_expr;
#[test]
fn test_can_unit() {
let output = can_expr("{}");
assert_eq!(output.problems, Vec::new());
assert!(matches!(output.expr, Expr::EmptyRecord));
}
}