Skip to content

Commit

Permalink
Added failing test for fsprojects#626.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Feb 1, 2020
1 parent 3f797ed commit 96554ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Fantomas.Tests/UnionTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,16 @@ namespace meh
type DU = | Record
"""

[<Test>]
let ``enum with back ticks, 626`` () =
formatSourceString false """type MyEnum =
| ``test-one`` = 0
""" config
|> prepend newline
|> should equal """
type MyEnum =
| ``test-one`` = 0
"""
[<Test>]
let ``enum with back ticks, 626`` () =
formatSourceString false """type MyEnum =
Expand Down

0 comments on commit 96554ad

Please sign in to comment.