Skip to content

Commit

Permalink
Merge pull request #230 from alexfmpe/fix-typo
Browse files Browse the repository at this point in the history
Fix typo: relavant -> relevant
  • Loading branch information
luigy authored Jan 16, 2019
2 parents 18e12c0 + d282471 commit fc68de9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Reflex/Plan/Pure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ instance TestPlan (Pure Int) PurePlan where
runPure :: PurePlan a -> (a, IntSet)
runPure (PurePlan p) = runStateT p mempty $ 0

relavantTimes :: IntSet -> IntSet
relavantTimes occs = IntSet.fromList [0..l + 1]
relevantTimes :: IntSet -> IntSet
relevantTimes occs = IntSet.fromList [0..l + 1]
where l = fromMaybe 0 (fst <$> IntSet.maxView occs)

testBehavior :: (Behavior (Pure Int) a, IntSet) -> IntMap a
testBehavior (b, occs) = IntMap.fromSet (sample b) (relavantTimes occs)
testBehavior (b, occs) = IntMap.fromSet (sample b) (relevantTimes occs)

testEvent :: (Event (Pure Int) a, IntSet) -> IntMap (Maybe a)
testEvent (Event readEvent, occs) = IntMap.fromSet readEvent (relavantTimes occs)
testEvent (Event readEvent, occs) = IntMap.fromSet readEvent (relevantTimes occs)



Expand Down

0 comments on commit fc68de9

Please sign in to comment.