fix: port last missing test
This test has been added after the first implementation, so we move it to the new format :)
This commit is contained in:
parent
7f7a86765d
commit
14652abd4f
|
@ -501,8 +501,8 @@ fn test_format_first_class_binop() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn int_uint() {
|
||||
let src = indoc! { r#"
|
||||
fn test_format_int_uint() {
|
||||
assert_format!(r#"
|
||||
const i = 42
|
||||
|
||||
const j = -14
|
||||
|
@ -513,7 +513,5 @@ fn int_uint() {
|
|||
-42 -> 42
|
||||
}
|
||||
}
|
||||
"#};
|
||||
|
||||
assert_fmt(src, src);
|
||||
"#);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
source: crates/aiken-lang/src/tests/format.rs
|
||||
description: "Code:\n\nconst i = 42\n\nconst j = -14\n\nfn foo() {\n when y is {\n 14 -> -14\n -42 -> 42\n }\n}\n"
|
||||
---
|
||||
const i = 42
|
||||
|
||||
const j = -14
|
||||
|
||||
fn foo() {
|
||||
when y is {
|
||||
14 -> -14
|
||||
-42 -> 42
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue