Create initial state

This commit is contained in:
2017-11-11 09:45:25 +03:00
commit ddfec7a8e4
9 changed files with 174 additions and 0 deletions

13
test/Spec.hs Normal file
View File

@ -0,0 +1,13 @@
import Test.Hspec
import Test.QuickCheck
import Control.Exception (evaluate)
import Data.Dates
import Lib (check)
main :: IO ()
main = hspec $ do
describe "Cron ckecker" $ do
it "matches asterisks" $ do
check (DateTime 2017 10 11 0 0 0) "* * * * *" `shouldBe` (True :: Bool)