Skip to content

Commit

Permalink
require positive duration for prop_during_end property
Browse files Browse the repository at this point in the history
Fixes #43.
  • Loading branch information
byorgey committed Jun 11, 2023
1 parent 66adaff commit 8fcc37c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/active-tests.hs
Expand Up @@ -133,8 +133,9 @@ prop_during_start d1 d2 =
where a1 = fromDynamic d1
a2 = fromDynamic d2

prop_during_end :: Dynamic Bool -> Dynamic Bool -> Bool
prop_during_end :: Dynamic Bool -> Dynamic Bool -> Property
prop_during_end d1 d2 =
((duration <$> activeEra a2) > Just 0) && ((duration <$> activeEra a1) > Just 0) ==>
(end <$> activeEra (a1 `during` a2)) == (end <$> activeEra a2)
where a1 = fromDynamic d1
a2 = fromDynamic d2
Expand Down

0 comments on commit 8fcc37c

Please sign in to comment.