Skip to content

Commit b7e7e7a

Browse files
committed
test: Remove unuseful tests
1 parent a3e96c1 commit b7e7e7a

File tree

1 file changed

+3
-12
lines changed
  • plugins/hls-change-type-signature-plugin/test

1 file changed

+3
-12
lines changed

plugins/hls-change-type-signature-plugin/test/Main.hs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ test :: TestTree
4141
test = testGroup "changeTypeSignature" [
4242
testRegexes
4343
, codeActionTest "TExpectedActual" 4 11
44-
, knownBrokenForGhcVersions [GHC96 .. GHC912] "Error Message in 9.2+ does not provide enough info" $
44+
, knownBrokenForGhcVersions [GHC96 .. GHC912] "Error Message in 9.6+ does not provide enough info" $
4545
codeActionTest "TRigidType" 4 14
46-
, codeActionTest "TRigidType2" 4 6
46+
, codeActionTest "TRigidType2" 4 8
4747
, codeActionTest "TLocalBinding" 7 22
4848
, codeActionTest "TLocalBindingShadow1" 11 8
4949
, codeActionTest "TLocalBindingShadow2" 7 22
@@ -56,22 +56,13 @@ testRegexes = testGroup "Regex Testing" [
5656
, regexTest "TLocalBinding.txt" regex True
5757
, regexTest "TLocalBindingShadow1.txt" regex True
5858
, regexTest "TLocalBindingShadow2.txt" regex True
59+
-- Error message from GHC currently does not not provide enough info
5960
, regexTest "TRigidType.txt" regex False
6061
, regexTest "TRigidType2.txt" regex True
6162
]
6263
where
6364
regex = errorMessageRegexes !! 0
6465

65-
-- test ghc-9.2 error message regex
66-
testRegex921One :: TestTree
67-
testRegex921One = testGroup "Regex One" [
68-
regexTest "ghc921-error1.txt" regex True
69-
, regexTest "ghc921-error2.txt" regex True
70-
, regexTest "ghc921-error3.txt" regex True
71-
]
72-
where
73-
regex = errorMessageRegexes !! 0
74-
7566
testDataDir :: FilePath
7667
testDataDir = "plugins" </> "hls-change-type-signature-plugin" </> "test" </> "testdata"
7768

0 commit comments

Comments
 (0)