Skip to content

Commit a0738b5

Browse files
committed
Use some Stroustrup for patterns where the child pattern is array/list/record inside an application.
1 parent 4dfd6f8 commit a0738b5

File tree

5 files changed

+268
-105
lines changed

5 files changed

+268
-105
lines changed

src/Fantomas.Core.Tests/AlignedMultilineBracketStyleTests.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ let ``record destructuring in let binding`` () =
10091009
printfn "Last Name: %s" ln
10101010
printfn "Age: %i" age
10111011
"""
1012-
config
1012+
{ config with MaxLineLength = 50 }
10131013
|> prepend newline
10141014
|> should
10151015
equal

src/Fantomas.Core.Tests/CrampedMultilineBracketStyleTests.fs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ let internal sepSemi (ctx: Context) =
14531453
| true, true -> str " ; "
14541454
<| ctx
14551455
"""
1456-
config
1456+
{ config with MaxLineLength = 80 }
14571457
|> prepend newline
14581458
|> should
14591459
equal
@@ -1578,7 +1578,7 @@ match entities with
15781578
Type = Elephant } ] -> ()
15791579
| _ -> ()
15801580
"""
1581-
config
1581+
{ config with MaxLineLength = 40 }
15821582
|> prepend newline
15831583
|> should
15841584
equal
@@ -1607,7 +1607,7 @@ match entities with
16071607
Type = Elephant } ] -> ()
16081608
| _ -> ()
16091609
"""
1610-
config
1610+
{ config with MaxLineLength = 40 }
16111611
|> prepend newline
16121612
|> should
16131613
equal
@@ -1636,18 +1636,18 @@ match entities with
16361636
Type = Elephant } |] -> ()
16371637
| _ -> ()
16381638
"""
1639-
config
1639+
{ config with MaxLineLength = 40 }
16401640
|> prepend newline
16411641
|> should
16421642
equal
16431643
"""
16441644
match entities with
16451645
| [| { Key = "0031ff53-e59b-49e3-8e0f-53f72a3890d1"
16461646
Type = Elephant }
1647-
{ Key = "0031ff53-e59b-49e3-8e0f-53f72a3890d2"
1648-
Type = Elephant }
1649-
{ Key = "0031ff53-e59b-49e3-8e0f-53f72a3890d3"
1650-
Type = Elephant } |] -> ()
1647+
{ Key = "0031ff53-e59b-49e3-8e0f-53f72a3890d2"
1648+
Type = Elephant }
1649+
{ Key = "0031ff53-e59b-49e3-8e0f-53f72a3890d3"
1650+
Type = Elephant } |] -> ()
16511651
| _ -> ()
16521652
"""
16531653

src/Fantomas.Core.Tests/LambdaTests.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ let g =
11081108
revisionNumber = r
11091109
processName = pn } -> p, r, pn)
11101110
"""
1111-
config
1111+
{ config with MaxLineLength = 60 }
11121112
|> prepend newline
11131113
|> should
11141114
equal

0 commit comments

Comments
 (0)