Skip to content

Commit

Permalink
Add module headers to some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpj committed Dec 19, 2023
1 parent 19da08a commit 4860c6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Language/Haskell/Stylish/Step/LanguagePragmas/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ case02 = assertSnippet
(step (Just 80) Vertical True True lANG)
[ "{-# LANGUAGE BangPatterns #-}"
, "{-# LANGUAGE ViewPatterns #-}"
, "module Main where"
, "increment ((+ 1) -> x) = x"
]

[ "{-# LANGUAGE ViewPatterns #-}"
, "module Main where"
, "increment ((+ 1) -> x) = x"
]

Expand All @@ -75,10 +77,12 @@ case03 = assertSnippet
(step (Just 80) Vertical True True lANG)
[ "{-# LANGUAGE BangPatterns #-}"
, "{-# LANGUAGE ViewPatterns #-}"
, "module Main where"
, "increment x = case x of !_ -> x + 1"
]

[ "{-# LANGUAGE BangPatterns #-}"
, "module Main where"
, "increment x = case x of !_ -> x + 1"
]

Expand Down Expand Up @@ -226,6 +230,7 @@ case13 = assertSnippet
input =
[ "{-# LANGUAGE BangPatterns #-}"
, "{-# LANGUAGE DeriveFunctor #-}"
, "module Main where"
, "main = let !x = 1 + 1 in print x"
]

Expand Down

0 comments on commit 4860c6f

Please sign in to comment.