Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzhang committed Jun 18, 2024
1 parent 4caf323 commit 04c947f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/iter_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ test "range" {
0.1.to(0.4, step=0.1).take(5).collect(),
content="[0.1, 0.2, 0.30000000000000004]",
)?
inspect(0.1.to(0.3, step=0.1).collect(), content="[0.1, 0.2]")?
inspect(
0.1.to(0.4, step=0.1).take(5).collect(),
content="[0.1, 0.2, 0.30000000000000004]",
)?
inspect(
0x80000000L.to(0x80000000L + 10L, step=2L).collect(),
content="[2147483648, 2147483650, 2147483652, 2147483654, 2147483656]",
Expand Down

0 comments on commit 04c947f

Please sign in to comment.