@@ -57,8 +57,13 @@ tests = testGroup "splice"
57
57
, goldenTest " TQQTypeTypeError" Inplace 8 28
58
58
, goldenTest " TSimpleDecl" Inplace 8 1
59
59
, goldenTest " TQQDecl" Inplace 5 1
60
- , goldenTestWithEdit " TTypeKindError" Inplace 7 9
61
- , goldenTestWithEdit " TDeclKindError" Inplace 8 1
60
+ , goldenTestWithEdit " TTypeKindError" (
61
+ if ghcVersion >= GHC96 then
62
+ " 96-expected"
63
+ else
64
+ " expected"
65
+ ) Inplace 7 9
66
+ , goldenTestWithEdit " TDeclKindError" " expected" Inplace 8 1
62
67
]
63
68
64
69
goldenTest :: FilePath -> ExpandStyle -> Int -> Int -> TestTree
@@ -74,9 +79,9 @@ goldenTest fp tc line col =
74
79
void $ skipManyTill anyMessage (message SWorkspaceApplyEdit )
75
80
_ -> liftIO $ assertFailure " No CodeAction detected"
76
81
77
- goldenTestWithEdit :: FilePath -> ExpandStyle -> Int -> Int -> TestTree
78
- goldenTestWithEdit fp tc line col =
79
- goldenWithHaskellDoc splicePlugin (fp <> " (golden)" ) testDataDir fp " expected " " hs" $ \ doc -> do
82
+ goldenTestWithEdit :: FilePath -> FilePath -> ExpandStyle -> Int -> Int -> TestTree
83
+ goldenTestWithEdit fp expect tc line col =
84
+ goldenWithHaskellDoc splicePlugin (fp <> " (golden)" ) testDataDir fp expect " hs" $ \ doc -> do
80
85
orig <- documentContents doc
81
86
let
82
87
lns = T. lines orig
0 commit comments