Skip to content

Commit

Permalink
Better loop name
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Oct 30, 2023
1 parent 4b1d417 commit 80b70a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/examples/arena_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ defmodule Examples.ArenaTest do
end

defw just_enough(), I32, i: I32, final: I32 do
loop HereWeGo do
loop AllocManyTimes do
final = First.alloc(16)

i = i + 1
HereWeGo.continue(if: i < 2 * 64 * 1024 / 16)
AllocManyTimes.continue(if: i < 2 * 64 * 1024 / 16)
end
final
end

defw too_many(), i: I32 do
loop HereWeGo do
loop AllocManyTimes do
_ = First.alloc(16)

i = i + 1
HereWeGo.continue(if: i <= 2 * 64 * 1024 / 16)
AllocManyTimes.continue(if: i <= 2 * 64 * 1024 / 16)
end
end
end
Expand Down

0 comments on commit 80b70a9

Please sign in to comment.