Skip to content

Commit

Permalink
Adding test with short list.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Nov 25, 2019
1 parent 23cdbb8 commit f5e0676
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Fantomas.Tests/DataStructureTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,20 @@ let a =
]
"""

// TODO: check if this is expected behavior.
[<Test>]

let ``format short list with G-Research`` () =
formatSourceString false """let a = [b;c;d;e]
""" ({ configForGResearch with PageWidth = 80 })
|> prepend newline
|> should equal """
let a =
[
b; c; d; e
]
"""

[<Test>]
let ``format array with G-Research`` () =
formatSourceString false """let b =
Expand Down

0 comments on commit f5e0676

Please sign in to comment.