feat: update syntax for failing test to be more consistent

This commit is contained in:
rvcas
2023-07-11 20:13:01 -04:00
committed by Lucas
parent 0be09cd9e5
commit 03e7d6e944
5 changed files with 29 additions and 25 deletions

View File

@@ -507,12 +507,12 @@ fn test_format_match_record() {
fn test_format_fail() {
assert_format!(
r#"
!test foo() {
expect Some(a) = bar
test foo() fail {
expect Some(a) = bar
a
}
"#
a
}
"#
);
}

View File

@@ -1,8 +1,8 @@
---
source: crates/aiken-lang/src/tests/format.rs
description: "Code:\n\n!test foo() {\n expect Some(a) = bar\n\n a\n}\n"
description: "Code:\n\ntest foo() fail {\n expect Some(a) = bar\n\n a\n}\n"
---
!test foo() {
test foo() fail {
expect Some(a) = bar
a