You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Fantomas.Core.Tests/TypeDeclarationTests.fs
+20-15Lines changed: 20 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1605,10 +1605,11 @@ type SomeType() =
1605
1605
let``split multiple parameters over multiple lines`` ()=
1606
1606
formatSourceString
1607
1607
false
1608
-
"""type SomeType =
1608
+
"""
1609
+
type SomeType =
1609
1610
static member SomeMember (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1: string) (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong2: string) : string =
1610
-
printfn "a"
1611
-
"b"
1611
+
printfn "a"
1612
+
"b"
1612
1613
"""
1613
1614
config
1614
1615
|> prepend newline
@@ -1628,10 +1629,11 @@ type SomeType =
1628
1629
let``split multiple parameters over multiple lines and have correct indentation afterwards`` ()=
1629
1630
formatSourceString
1630
1631
false
1631
-
"""type SomeType =
1632
+
"""
1633
+
type SomeType =
1632
1634
static member SomeMember (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1: string) (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong2: string) : string =
1633
-
printfn "a"
1634
-
"b"
1635
+
printfn "a"
1636
+
"b"
1635
1637
1636
1638
static member SomeOtherMember () = printfn "c"
1637
1639
"""
@@ -1656,10 +1658,11 @@ type SomeType =
1656
1658
let``member with one long parameter and return type,850`` ()=
1657
1659
formatSourceString
1658
1660
false
1659
-
"""type SomeType =
1661
+
"""
1662
+
type SomeType =
1660
1663
static member SomeMember loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1 : string =
1661
-
printfn "a"
1662
-
"b"
1664
+
printfn "a"
1665
+
"b"
1663
1666
"""
1664
1667
config
1665
1668
|> prepend newline
@@ -1678,10 +1681,11 @@ type SomeType =
1678
1681
let``member with one long parameter and no return type,850`` ()=
1679
1682
formatSourceString
1680
1683
false
1681
-
"""type SomeType =
1684
+
"""
1685
+
type SomeType =
1682
1686
static member SomeMember loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1 =
1683
-
printfn "a"
1684
-
"b"
1687
+
printfn "a"
1688
+
"b"
1685
1689
"""
1686
1690
config
1687
1691
|> prepend newline
@@ -1700,10 +1704,11 @@ type SomeType =
1700
1704
let``multiple members with one long parameter`` ()=
1701
1705
formatSourceString
1702
1706
false
1703
-
"""type SomeType =
1707
+
"""
1708
+
type SomeType =
1704
1709
static member SomeMember loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1 =
1705
-
printfn "a"
1706
-
"b"
1710
+
printfn "a"
1711
+
"b"
1707
1712
1708
1713
static member Serialize (loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong2: SomeType) = Encode.string v.Meh
1709
1714
static member Deserialize (loooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnngggggggggggJsonVaaaaalueeeeeeeeeeeeeeee) : SomeType = Decode.SomeType loooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnngggggggggggJsonVaaaaalueeeeeeeeeeeeeeee
0 commit comments