fix: unable to have newline after expect bool shortcut
This commit is contained in:
@@ -120,6 +120,19 @@ fn format_grouped_expression_4() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn format_preserve_newline_after_bool_expect() {
|
||||
assert_format!(
|
||||
r#"
|
||||
fn foo() {
|
||||
expect 1 == 1
|
||||
|
||||
False
|
||||
}
|
||||
"#
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn format_validator() {
|
||||
assert_format!(
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
source: crates/aiken-lang/src/tests/format.rs
|
||||
description: "Code:\n\nfn foo() {\n expect 1 == 1\n\n False\n}\n"
|
||||
---
|
||||
fn foo() {
|
||||
expect 1 == 1
|
||||
|
||||
False
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user