| 1 |
-- Do not edit! Automatically created with doctest-extract from src/Data/Maybe/HT.hs |
| 2 |
{-# LINE 6 "src/Data/Maybe/HT.hs" #-} |
| 3 |
|
| 4 |
module DocTest.Data.Maybe.HT where |
| 5 |
|
| 6 |
import Data.Maybe.HT |
| 7 |
import qualified Test.DocTest.Driver as DocTest |
| 8 |
|
| 9 |
{-# LINE 7 "src/Data/Maybe/HT.hs" #-} |
| 10 |
import Control.Monad (guard) |
| 11 |
|
| 12 |
test :: DocTest.T () |
| 13 |
test = do |
| 14 |
DocTest.printPrefix "Data.Maybe.HT:15: " |
| 15 |
{-# LINE 15 "src/Data/Maybe/HT.hs" #-} |
| 16 |
DocTest.property( |
| 17 |
{-# LINE 15 "src/Data/Maybe/HT.hs" #-} |
| 18 |
\b x -> (guard b >> x) == (toMaybe b =<< (x::Maybe Char)) |
| 19 |
) |