Skip to content

Commit

Permalink
Add another test for upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
fehrenbach committed Aug 23, 2021
1 parent 0ebbd89 commit e1f1f5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ main = do

log "Recheck #28"
nowGood' gh28
nowGood' gh28'

log "toArrayBy"
quickCheck' 10000 $ \ (a :: Array (Tuple CollidingInt Int)) ->
Expand Down Expand Up @@ -461,3 +462,6 @@ t249 = let k = 855538

gh28 :: Boolean
gh28 = (HM.singleton 'x' 10 # HM.upsert (_ + 1) 'x' 1) == HM.singleton 'x' 11

gh28' :: Boolean
gh28' = (HM.singleton 'y' 10 # HM.upsert (_ + 1) 'x' 1) == HM.fromArray [Tuple 'x' 1, Tuple 'y' 10]

0 comments on commit e1f1f5d

Please sign in to comment.