Skip to content

Commit 647efd3

Browse files
committed
Add test over unused extensions
1 parent 2f42755 commit 647efd3

File tree

1 file changed

+2
-2
lines changed
  • plugins/hls-hlint-plugin/test

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ suggestionsTests =
155155
liftIO $ not (hasApplyAll thirdLine) @? "Unexpected apply all code action"
156156
liftIO $ hasApplyAll multiLine @? "Missing apply all code action"
157157

158-
, expectFailBecause "[#2042] To investigate" $ testCase "hlint should warn about unused extensions" $ runHlintSession "" $ do
158+
, testCase "hlint should warn about unused extensions" $ runHlintSession "unusedext" $ do
159159
doc <- openDoc "UnusedExtension.hs" "haskell"
160160
diags@(unusedExt:_) <- waitForDiagnosticsFromSource doc "hlint"
161161

162162
liftIO $ do
163-
length diags @?= 1 -- "Eta Reduce" and "Redundant Id"
163+
length diags @?= 1
164164
unusedExt ^. L.code @?= Just (InR "refact:Unused LANGUAGE pragma")
165165

166166
, knownBrokenForHlintOnGhcLib "[#1279] hlint uses a fixed set of extensions" $

0 commit comments

Comments
 (0)