-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
5 changed files
with
85 additions
and
46 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module Fantomas.Tests.SynExprNewTests | ||
|
||
open NUnit.Framework | ||
open FsUnit | ||
open Fantomas.Tests.TestHelper | ||
|
||
[<Test>] | ||
let ``combination of named and non named arguments, 1158`` () = | ||
formatSourceString false """ | ||
let private sendTooLargeError () = | ||
new HttpResponseMessage(HttpStatusCode.RequestEntityTooLarge, | ||
Content = | ||
new StringContent("File was too way too large", | ||
System.Text.Encoding.UTF16, | ||
"application/text")) | ||
""" config | ||
|> prepend newline | ||
|> should equal """ | ||
let private sendTooLargeError () = | ||
new HttpResponseMessage(HttpStatusCode.RequestEntityTooLarge, | ||
Content = | ||
new StringContent("File was too way too large", | ||
System.Text.Encoding.UTF16, | ||
"application/text")) | ||
""" | ||
|
||
[<Test>] | ||
let ``single multi line named argument instance`` () = | ||
formatSourceString false """ | ||
let myInstance = | ||
new EvilBadRequest(Content = new StringContent("File was too way too large", | ||
System.Text.Encoding.UTF16, | ||
"application/text")) | ||
""" config | ||
|> prepend newline | ||
|> should equal """ | ||
let myInstance = | ||
new EvilBadRequest(Content = | ||
new StringContent("File was too way too large", System.Text.Encoding.UTF16, "application/text")) | ||
""" |
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