Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit d36f5c0

Browse files
authored
Merge pull request #1483 from haskell/liquid-no-diagnostic-test-fixes
Some tidying up for tests
2 parents d80618a + eefa285 commit d36f5c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/functional/FunctionalCodeActionsSpec.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec = describe "code actions" $ do
4848
contents <- getDocumentEdit doc
4949
liftIO $ contents `shouldBe` "main = undefined\nfoo x = x\n"
5050

51-
-- noDiagnostics
51+
noDiagnostics
5252

5353
-- ---------------------------------
5454

@@ -67,7 +67,7 @@ spec = describe "code actions" $ do
6767
contents <- skipManyTill publishDiagnosticsNotification $ getDocumentEdit doc
6868
liftIO $ contents `shouldBe` "main = undefined\nfoo x = x\n"
6969

70-
-- noDiagnostics
70+
noDiagnostics
7171

7272
-- ---------------------------------
7373

@@ -96,7 +96,7 @@ spec = describe "code actions" $ do
9696
liftIO $ contents `shouldBe` "main = undefined\nfoo x = x\n"
9797
sendNotification TextDocumentDidSave (DidSaveTextDocumentParams doc)
9898

99-
-- noDiagnostics
99+
noDiagnostics
100100

101101
-- -----------------------------------
102102

test/unit/LiquidSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec = do
3333
Nothing -> expectationFailure "liquid haskell exe is NOT in $PATH"
3434
Just exe -> do
3535
version <- readProcess exe ["--numeric-version"] ""
36-
version `shouldSatisfy` isPrefixOf "0.8.6.2"
36+
version `shouldSatisfy` ("0.8.6" `isPrefixOf`)
3737

3838
-- ---------------------------------
3939

0 commit comments

Comments
 (0)