File tree 3 files changed +15
-0
lines changed
plugins/hls-fourmolu-plugin/test
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ tests =
29
29
formatDoc doc (FormattingOptions 4 True Nothing Nothing Nothing )
30
30
, goldenWithFourmolu cli " formats imports correctly" " Fourmolu2" " formatted" $ \ doc -> do
31
31
formatDoc doc (FormattingOptions 4 True Nothing Nothing Nothing )
32
+ , goldenWithFourmolu cli " uses correct operator fixities" " Fourmolu3" " formatted" $ \ doc -> do
33
+ formatDoc doc (FormattingOptions 4 True Nothing Nothing Nothing )
32
34
]
33
35
34
36
goldenWithFourmolu :: Bool -> TestName -> FilePath -> FilePath -> (TextDocumentIdentifier -> Session () ) -> TestTree
Original file line number Diff line number Diff line change
1
+ b :: Bool
2
+ b =
3
+ id $
4
+ id $
5
+ case True && True of
6
+ True -> True
7
+ False -> False
Original file line number Diff line number Diff line change
1
+ b :: Bool
2
+ b =
3
+ id $ id $
4
+ case True && True of
5
+ True -> True
6
+ False -> False
You can’t perform that action at this time.
0 commit comments