hinotify-0.2: tests/test001-list-dir-contents.hs
module Main where
import Control.Monad
import System.Directory
import System.INotify as INotify
import Utils
main =
inTestEnviron [Open, Close] getDirectoryContents $ \ events -> do
when (expected ~= events)
testSuccess
explainFailure expected events
expected =
[ Opened True Nothing
, Closed True Nothing False
]