Skip to content

Commit

Permalink
avoid constructing Vector{Tuple{Type{...},Type{...}}}
Browse files Browse the repository at this point in the history
This commit adapts to the incoming upstream change of the Julia compiler.
More specifically this change is necessary after JuliaLang/julia#44725,
which fixes an internal bug of the compiler, which in turn makes the test
suite of SquidGame fail without this change (if you're interested, please
see <JuliaLang/julia#44725 (comment)>).
  • Loading branch information
aviatesk committed Mar 29, 2022
1 parent d8a2b92 commit 3cfb1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using Test
@testset "Number of rounds: $num_rounds" for num_rounds in [1; 10]
game = game_name(num_rounds)
num_players = length(size(game.rewards(1)))
@testset "Battle: $strategies_pool" for strategies_pool in collect(Iterators.product(fill(SquidGame.AVAILABLE_STRATEGIES, num_players)...))
@testset "Battle: $strategies_pool" for strategies_pool in Iterators.product(fill(SquidGame.AVAILABLE_STRATEGIES, num_players)...)
strategies = Vector{Type{<:Strategy}}()
for strategy in strategies_pool
push!(strategies, strategy)
Expand Down

0 comments on commit 3cfb1d7

Please sign in to comment.