]> Git — Sourcephile - majurity.git/blob - judgmentphile-majority/tests/HUnit/Utils.hs
Rename {hjugement => judgmentphile}
[majurity.git] / judgmentphile-majority / tests / HUnit / Utils.hs
1 module HUnit.Utils where
2 import Data.Bool
3 import Data.List
4 import Data.String (String)
5 import Data.Ord (Ord(..))
6
7 elide :: String -> String
8 elide s | length s > 42 = take 42 s ++ ['…']
9 | otherwise = s