Swap arguments
This commit is contained in:
@ -3,11 +3,11 @@ import Test.QuickCheck
|
||||
import Control.Exception (evaluate)
|
||||
import Data.Dates
|
||||
|
||||
import Lib (check)
|
||||
import Lib (match)
|
||||
|
||||
main :: IO ()
|
||||
main = hspec $ do
|
||||
describe "Cron ckecker" $ do
|
||||
it "matches asterisks" $ do
|
||||
check (DateTime 2017 10 11 0 0 0) "* * * * *" `shouldBe` (True :: Bool)
|
||||
match "* * * * *" (DateTime 2017 10 11 0 0 0) `shouldBe` (True :: Bool)
|
||||
|
||||
|
Reference in New Issue
Block a user