Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmi committed Apr 22, 2024
1 parent c6ceaf5 commit 5459588
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions test/examples/simple_numbers_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@ defmodule Strom.Examples.SimpleNumbersTest do
%{first: [1, 2, 3], second: [10, 20, 30]}
|> Composite.call(round_robin)

case Enum.to_list(mixed) do
[1 | rest] ->
assert rest == [10, 2, 20, 3, 30]

[10 | rest] ->
assert rest == [1, 20, 2, 30, 3]
end
mixed
|> Enum.chunk_every(2)
|> Enum.each(fn [first, second] ->
case first > second do
true ->
assert div(first, second) == 10

false ->
assert div(second, first) == 10
end
end)

Composite.stop(round_robin)
end
Expand Down

0 comments on commit 5459588

Please sign in to comment.