Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Automatic JuliaFormatter.jl run #114

Merged
merged 1 commit into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,16 @@ function test_interfaces!(env)
reset!(env)
end

function test_runnable!(env, n = 1000;rng=Random.GLOBAL_RNG)
function test_runnable!(env, n = 1000; rng = Random.GLOBAL_RNG)
@testset "random policy with $(nameof(env))" begin
reset!(env)
for _ in 1:n
A = legal_action_space(env)
a = rand(rng, A)
@test a in A

if ActionStyle(env) === EXPLICIT_STOCHASTIC && current_player(env) == chance_player(env)
if ActionStyle(env) === EXPLICIT_STOCHASTIC &&
current_player(env) == chance_player(env)
@test isapprox(sum(prob(env)), 1)
end

Expand Down
3 changes: 1 addition & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ReinforcementLearningBase
using Test

@testset "ReinforcementLearningBase" begin
end
@testset "ReinforcementLearningBase" begin end