Skip to content

Commit a535251

Browse files
committed
FOURMOLU_DISABLE ParserTests
1 parent 197beaa commit a535251

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cabal-tests/tests/ParserTests.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,14 @@ regressionTests = testGroup "regressions"
200200

201201
regressionTest :: FilePath -> TestTree
202202
regressionTest fp = testGroup fp
203+
{- FOURMOLU_DISABLE -}
203204
[ formatGoldenTest fp
204205
, formatRoundTripTest fp
205206
#ifdef MIN_VERSION_tree_diff
206207
, treeDiffGoldenTest fp
207208
#endif
208209
]
210+
{- FOURMOLU_ENABLE -}
209211

210212
formatGoldenTest :: FilePath -> TestTree
211213
formatGoldenTest fp = cabalGoldenTest "format" correct $ do
@@ -248,6 +250,7 @@ formatRoundTripTest fp = testCase "roundtrip" $ do
248250
y <- parse (toUTF8BS contents')
249251
-- previously we mangled licenses a bit
250252
let y' = y
253+
{- FOURMOLU_DISABLE -}
251254
unless (x == y') $
252255
#ifdef MIN_VERSION_tree_diff
253256
assertFailure $ unlines
@@ -273,6 +276,7 @@ formatRoundTripTest fp = testCase "roundtrip" $ do
273276
void $ assertFailure $ unlines (map (showPError fp) $ NE.toList errs)
274277
fail "failure"
275278
input = "tests" </> "ParserTests" </> "regressions" </> fp
279+
{- FOURMOLU_ENABLE -}
276280

277281
-------------------------------------------------------------------------------
278282
-- InstalledPackageInfo regressions
@@ -287,13 +291,15 @@ ipiTests = testGroup "ipis"
287291
]
288292

289293
ipiTest :: FilePath -> TestTree
294+
{- FOURMOLU_DISABLE -}
290295
ipiTest fp = testGroup fp $
291296
#ifdef MIN_VERSION_tree_diff
292297
[ ipiTreeDiffGoldenTest fp ] ++
293298
#endif
294299
[ ipiFormatGoldenTest fp
295300
, ipiFormatRoundTripTest fp
296301
]
302+
{- FOURMOLU_ENABLE -}
297303

298304
ipiFormatGoldenTest :: FilePath -> TestTree
299305
ipiFormatGoldenTest fp = cabalGoldenTest "format" correct $ do

0 commit comments

Comments
 (0)