Skip to content

Commit 3958337

Browse files
committed
tests: Set utf8 locale
...to ensure Unicode characters can be printed
1 parent 2b8fcae commit 3958337

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/Main.hs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
module Main (main) where
22

3+
import GHC.IO.Encoding (setLocaleEncoding, utf8)
34
import Test.Tasty (defaultMain, testGroup)
45

56
import qualified Properties
67
import qualified Regressions
78
import qualified Strictness
89

910
main :: IO ()
10-
main = defaultMain $ testGroup "All"
11-
[ Properties.tests
12-
, Regressions.tests
13-
, Strictness.tests
14-
]
11+
main = do
12+
setLocaleEncoding utf8
13+
defaultMain $ testGroup "All"
14+
[ Properties.tests
15+
, Regressions.tests
16+
, Strictness.tests
17+
]

0 commit comments

Comments
 (0)