File: test001-list-dir-contents.hs

package info (click to toggle)
haskell-hinotify 0.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 144 kB
  • sloc: haskell: 271; sh: 25; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
    ]