Skip to content

Commit d99f4df

Browse files
Fix traces test
1 parent 6d7c906 commit d99f4df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/traces.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ end
167167
@test t1[:reward][1] == 5
168168

169169
@test size(Base.getindex(t1, :reward)) == (1,)
170-
@test size(Base.getindex(t1, 1).state) == (2,3)
171170

171+
push!(t1, Val(:state), ones(2,3))
172+
173+
@test t1[:state][1] == ones(2,3)
172174

173175
t2 = Traces(; a=[2, 3], b=[false, true])
174176
push!(t2, Val(:a), 5)

0 commit comments

Comments
 (0)