File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -336,3 +336,28 @@ pub fn size_test() {
336
336
|> map . size ( )
337
337
|> should . equal ( 18 )
338
338
}
339
+
340
+ // https://github.com/gleam-lang/stdlib/issues/435
341
+ pub fn peters_bug_test ( ) {
342
+ map . new ( )
343
+ |> map . insert ( 22 , Nil )
344
+ |> map . insert ( 21 , Nil )
345
+ |> map . insert ( 23 , Nil )
346
+ |> map . insert ( 18 , Nil )
347
+ |> map . insert ( 17 , Nil )
348
+ |> map . insert ( 19 , Nil )
349
+ |> map . insert ( 14 , Nil )
350
+ |> map . insert ( 13 , Nil )
351
+ |> map . insert ( 15 , Nil )
352
+ |> map . insert ( 10 , Nil )
353
+ |> map . insert ( 9 , Nil )
354
+ |> map . insert ( 11 , Nil )
355
+ |> map . insert ( 6 , Nil )
356
+ |> map . insert ( 5 , Nil )
357
+ |> map . insert ( 7 , Nil )
358
+ |> map . insert ( 2 , Nil )
359
+ |> map . insert ( 1 , Nil )
360
+ |> map . insert ( 3 , Nil )
361
+ |> map . get ( 0 )
362
+ |> should . equal ( Error ( Nil ) )
363
+ }
You can’t perform that action at this time.
0 commit comments