Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jindraivanek committed Apr 23, 2020
1 parent 4a67f8a commit 5434b45
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Fantomas.Tests/FunctionDefinitionTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,33 @@ let ``should keep identifiers with + in double backticks``() =
|> should equal """let ``Foo+Bar`` () = x
"""

[<Test>]
let ``double backticks with non-alphanum character, 776``() =
formatSourceString false """let ``!foo hoo`` () = ()
let ``@foo hoo`` () = ()
let ``$foo hoo`` () = ()
let ``%foo hoo`` () = ()
let ``^foo hoo`` () = ()
let ``&foo hoo`` () = ()
let ``*foo hoo`` () = ()
let ``<foo hoo`` () = ()
let ``>foo hoo`` () = ()
let ``=foo hoo`` () = ()
let ``-foo hoo`` () = ()
""" config
|> should equal """let ``!foo hoo`` () = ()
let ``@foo hoo`` () = ()
let ``$foo hoo`` () = ()
let ``%foo hoo`` () = ()
let ``^foo hoo`` () = ()
let ``&foo hoo`` () = ()
let ``*foo hoo`` () = ()
let ``<foo hoo`` () = ()
let ``>foo hoo`` () = ()
let ``=foo hoo`` () = ()
let ``-foo hoo`` () = ()
"""

[<Test>]
let ``let bindings with return types``() =
formatSourceString false """
Expand Down

0 comments on commit 5434b45

Please sign in to comment.