Fix generation of UTCTimes
This commit is contained in:
parent
2e65cf175c
commit
05d95fd1cb
@ -19,8 +19,8 @@ import Data.Time
|
|||||||
instance Arbitrary File where
|
instance Arbitrary File where
|
||||||
arbitrary = do
|
arbitrary = do
|
||||||
fileTitle <- joinPath <$> arbitrary
|
fileTitle <- joinPath <$> arbitrary
|
||||||
let date = addDays <$> arbitrary <*> pure (fromGregorian 2043 7 2)
|
date <- addDays <$> arbitrary <*> pure (fromGregorian 2043 7 2)
|
||||||
fileModified <- UTCTime <$> date <*> arbitrary
|
fileModified <- addUTCTime <$> arbitrary <*> pure (UTCTime date 0)
|
||||||
fileContent <- arbitrary
|
fileContent <- arbitrary
|
||||||
return File{..}
|
return File{..}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user