Fix tests

This commit is contained in:
Gregor Kleen 2018-11-09 14:53:07 +01:00
parent a056690151
commit aa2d33922a

View File

@ -18,7 +18,7 @@ import Data.Time
instance Arbitrary File where
arbitrary = do
fileTitle <- joinPath <$> arbitrary
fileTitle <- (joinPath <$> arbitrary) `suchThat` (any $ not . isPathSeparator)
date <- addDays <$> arbitrary <*> pure (fromGregorian 2043 7 2)
fileModified <- addUTCTime <$> arbitrary <*> pure (UTCTime date 0)
fileContent <- arbitrary