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

Commit 762f032

Browse files
authored
enrich tests (#115)
1 parent 8902951 commit 762f032

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/base.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ function test_runnable!(env, n = 1000;rng=Random.GLOBAL_RNG)
199199
a = rand(rng, A)
200200
@test a in A
201201

202+
if ActionStyle(env) === EXPLICIT_STOCHASTIC && current_player(env) == chance_player(env)
203+
@test isapprox(sum(prob(env)), 1)
204+
end
205+
202206
S = state_space(env)
203207
s = state(env)
204208
@test s in S

0 commit comments

Comments
 (0)