Skip to content

Commit a9bc6df

Browse files
committed
test case for haskell#2915 (currently fails)
1 parent f0ba40b commit a9bc6df

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-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 declaration" "DataDec" $ \doc ->
28+
rename doc (Position 2 9) "CXX"
2729
, goldenWithRename "Exported function" "ExportedFunction" $ \doc ->
2830
rename doc (Position 2 1) "quux"
2931
, goldenWithRename "Field Puns" "FieldPuns" $ \doc ->
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module M (module M) where
2+
3+
data D = CXX { a, b :: Int }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module M (module M) where
2+
3+
data D = C { a, b :: Int }

0 commit comments

Comments
 (0)