vendredi 28 septembre 2018

How to provide stdin for doctests?

I want to create an example in doctest for using getLine. However, when I run the test, it does not terminate:

{- |
>>> getLine
>>> Hello, World!
"Hello, World!"
-}
module MyModule where

How to provide custom input for doctest?

Aucun commentaire:

Enregistrer un commentaire