Skip to content

Commit

Permalink
IntSet validity: Tip cannot be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
meooow25 committed Apr 6, 2024
1 parent b3ae761 commit 40f8503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers-tests/tests/IntSetValidity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ tipsValid :: IntSet -> Bool
tipsValid t =
case t of
Nil -> True
tip@(Tip p b) -> validTipPrefix p
tip@(Tip p b) -> validTipPrefix p && b /= 0
Bin _ l r -> tipsValid l && tipsValid r

validTipPrefix :: Int -> Bool
Expand Down

0 comments on commit 40f8503

Please sign in to comment.