Skip to content

Commit e1f1f5d

Browse files
committed
Add another test for upsert
1 parent 0ebbd89 commit e1f1f5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Main.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ main = do
115115

116116
log "Recheck #28"
117117
nowGood' gh28
118+
nowGood' gh28'
118119

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

462463
gh28 :: Boolean
463464
gh28 = (HM.singleton 'x' 10 # HM.upsert (_ + 1) 'x' 1) == HM.singleton 'x' 11
465+
466+
gh28' :: Boolean
467+
gh28' = (HM.singleton 'y' 10 # HM.upsert (_ + 1) 'x' 1) == HM.fromArray [Tuple 'x' 1, Tuple 'y' 10]

0 commit comments

Comments
 (0)