We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb4728 commit 9f6fc95Copy full SHA for 9f6fc95
test/functional/HaReSpec.hs
@@ -49,6 +49,13 @@ spec = describe "HaRe" $
49
expected = "\nmain = putStrLn \"hello\"\n\n\
50
\foo x = y + 3\n where\n y = 7\n"
51
in execCodeAction "HaReDemote.hs" r "Demote y one level" expected
52
+ context "casesplit argument" $ it "works" $
53
+ let r = Range (Position 4 5) (Position 4 6)
54
+ expected = "\nmain = putStrLn \"hello\"\n\n\
55
+ \foo :: Maybe Int -> ()\n\
56
+ \foo Nothing = ()\n\
57
+ \foo (Just x) = ()\n"
58
+ in execCodeAction "GhcModCaseSplit.hs" r "Case split on x" expected
59
60
61
getCANamed :: T.Text -> [CAResult] -> CodeAction
0 commit comments