mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Update formatter tests
This commit is contained in:
parent
44f27c4378
commit
87b7a9ba3b
1 changed files with 28 additions and 33 deletions
|
@ -4307,17 +4307,15 @@ mod test_fmt {
|
|||
module_formats_same(indoc!(
|
||||
r#"
|
||||
interface Foo
|
||||
exposes
|
||||
[
|
||||
Stuff,
|
||||
Things,
|
||||
somethingElse,
|
||||
]
|
||||
imports
|
||||
[
|
||||
Blah,
|
||||
Baz.{ stuff, things },
|
||||
]"#
|
||||
exposes [
|
||||
Stuff,
|
||||
Things,
|
||||
somethingElse,
|
||||
]
|
||||
imports [
|
||||
Blah,
|
||||
Baz.{ stuff, things },
|
||||
]"#
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -4387,23 +4385,20 @@ mod test_fmt {
|
|||
module_formats_same(indoc!(
|
||||
r#"
|
||||
hosted Foo
|
||||
exposes
|
||||
[
|
||||
Stuff,
|
||||
Things,
|
||||
somethingElse,
|
||||
]
|
||||
imports
|
||||
[
|
||||
Blah,
|
||||
Baz.{ stuff, things },
|
||||
]
|
||||
generates Bar with
|
||||
[
|
||||
map,
|
||||
after,
|
||||
loop,
|
||||
]"#
|
||||
exposes [
|
||||
Stuff,
|
||||
Things,
|
||||
somethingElse,
|
||||
]
|
||||
imports [
|
||||
Blah,
|
||||
Baz.{ stuff, things },
|
||||
]
|
||||
generates Bar with [
|
||||
map,
|
||||
after,
|
||||
loop,
|
||||
]"#
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -4522,11 +4517,11 @@ mod test_fmt {
|
|||
expr_formats_same(indoc!(
|
||||
r#"
|
||||
Expr : [
|
||||
Add Expr Expr,
|
||||
Mul Expr Expr,
|
||||
Val I64,
|
||||
Var I64,
|
||||
]
|
||||
Add Expr Expr,
|
||||
Mul Expr Expr,
|
||||
Val I64,
|
||||
Var I64,
|
||||
]
|
||||
|
||||
Expr"#
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue