Skip to content

Commit

Permalink
Fix tests expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
ghallak committed Jan 25, 2020
1 parent 7165ecc commit 5c5367b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text/Pretty/Simple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@ pHPrintStringNoColor = pHPrintStringOpt NoCheckColorTty defaultOutputOptionsNoCo
-- | Like 'pShow', but without color.
--
-- >>> pShowNoColor [ Nothing, Just (1, "hello") ]
-- "[ Nothing\n, Just \n ( 1\n , \"hello\" \n ) \n] "
-- "[ Nothing\n, Just\n ( 1\n , \"hello\"\n )\n]"
pShowNoColor :: Show a => a -> Text
pShowNoColor = pShowOpt defaultOutputOptionsNoColor

-- | LIke 'pString', but without color.
--
-- >>> pStringNoColor $ show [1, 2, 3]
-- "[ 1\n, 2\n, 3\n] "
-- "[ 1\n, 2\n, 3\n]"
pStringNoColor :: String -> Text
pStringNoColor = pStringOpt defaultOutputOptionsNoColor

Expand Down

0 comments on commit 5c5367b

Please sign in to comment.