@@ -200,12 +200,14 @@ regressionTests = testGroup "regressions"
200
200
201
201
regressionTest :: FilePath -> TestTree
202
202
regressionTest fp = testGroup fp
203
+ {- FOURMOLU_DISABLE -}
203
204
[ formatGoldenTest fp
204
205
, formatRoundTripTest fp
205
206
#ifdef MIN_VERSION_tree_diff
206
207
, treeDiffGoldenTest fp
207
208
#endif
208
209
]
210
+ {- FOURMOLU_ENABLE -}
209
211
210
212
formatGoldenTest :: FilePath -> TestTree
211
213
formatGoldenTest fp = cabalGoldenTest " format" correct $ do
@@ -248,6 +250,7 @@ formatRoundTripTest fp = testCase "roundtrip" $ do
248
250
y <- parse (toUTF8BS contents')
249
251
-- previously we mangled licenses a bit
250
252
let y' = y
253
+ {- FOURMOLU_DISABLE -}
251
254
unless (x == y') $
252
255
#ifdef MIN_VERSION_tree_diff
253
256
assertFailure $ unlines
@@ -273,6 +276,7 @@ formatRoundTripTest fp = testCase "roundtrip" $ do
273
276
void $ assertFailure $ unlines (map (showPError fp) $ NE. toList errs)
274
277
fail " failure"
275
278
input = " tests" </> " ParserTests" </> " regressions" </> fp
279
+ {- FOURMOLU_ENABLE -}
276
280
277
281
-------------------------------------------------------------------------------
278
282
-- InstalledPackageInfo regressions
@@ -287,13 +291,15 @@ ipiTests = testGroup "ipis"
287
291
]
288
292
289
293
ipiTest :: FilePath -> TestTree
294
+ {- FOURMOLU_DISABLE -}
290
295
ipiTest fp = testGroup fp $
291
296
#ifdef MIN_VERSION_tree_diff
292
297
[ ipiTreeDiffGoldenTest fp ] ++
293
298
#endif
294
299
[ ipiFormatGoldenTest fp
295
300
, ipiFormatRoundTripTest fp
296
301
]
302
+ {- FOURMOLU_ENABLE -}
297
303
298
304
ipiFormatGoldenTest :: FilePath -> TestTree
299
305
ipiFormatGoldenTest fp = cabalGoldenTest " format" correct $ do
0 commit comments