-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/Fantomas.Core.Tests/ExperimentalDoubleIdentParametersTests.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module Fantomas.Core.Tests.ExperimentalDoubleIdentParametersTests | ||
|
||
open NUnit.Framework | ||
open FsUnit | ||
open Fantomas.Core.Tests.TestHelpers | ||
|
||
let config = | ||
{ config with | ||
ExperimentalDoubleIndentParameters = true | ||
MaxLineLength = 10 } | ||
|
||
[<Test>] | ||
let ``initial sample`` () = | ||
formatSourceString | ||
""" | ||
let sillyfuncWithParams parameterName1 ignoredParameterName2 ignoredParameterName3 = | ||
longBody | ||
""" | ||
config | ||
|> prepend newline | ||
|> should | ||
equal | ||
""" | ||
let sillyfuncWithParams | ||
parameterName1 | ||
ignoredParameterName2 | ||
ignoredParameterName3 | ||
= | ||
longBody | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters