Skip to content

Commit 14ebf76

Browse files
committed
Add reproducer
1 parent 3862e7a commit 14ebf76

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

plugins/hls-rename-plugin/test/Main.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ tests :: TestTree
2424
tests = testGroup "Rename"
2525
[ goldenWithRename "Data constructor" "DataConstructor" $ \doc ->
2626
rename doc (Position 0 15) "Op"
27+
, goldenWithRename "Data constructor with fields" "DataConstructorWithFields" $ \doc ->
28+
rename doc (Position 0 13) "FooRenamed"
2729
, goldenWithRename "Exported function" "ExportedFunction" $ \doc ->
2830
rename doc (Position 2 1) "quux"
2931
, goldenWithRename "Field Puns" "FieldPuns" $ \doc ->
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data Foo = FooRenamed { a :: Int, b :: Bool }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data Foo = Foo { a :: Int, b :: Bool }

0 commit comments

Comments
 (0)