Skip to content

Commit 3cf057f

Browse files
committed
SumTree tests
1 parent e74c09b commit 3cf057f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Project.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1616
[compat]
1717
Adapt = "3"
1818
CircularArrayBuffers = "0.1"
19+
DataStructures = "0.18"
1920
ElasticArrays = "1"
2021
MacroTools = "0.5"
2122
OnlineStats = "1"
2223
StackViews = "0.1"
23-
julia = "1.9"
24-
DataStructures = "0.18"
2524
StatsBase = "0.34"
25+
julia = "1.9"
2626

2727
[extras]
2828
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
29+
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
2930
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3031

3132
[targets]
32-
test = ["Test", "CUDA"]
33+
test = ["Test", "CUDA", "StableRNGs"]

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
using ReinforcementLearningTrajectories
22
using CircularArrayBuffers, DataStructures
3+
using StableRNGs
34
using Test
45
using CUDA
56
using Adapt
7+
using Random
68
import ReinforcementLearningTrajectories.StatsBase.sample
9+
import StatsBase.countmap
710

811
struct TestAdaptor end
912

@@ -13,6 +16,7 @@ Adapt.adapt_storage(to::TestAdaptor, x) = CUDA.functional() ? CUDA.cu(x) : x
1316

1417
@testset "ReinforcementLearningTrajectories.jl" begin
1518
include("traces.jl")
19+
include("sum_tree.jl")
1620
include("common.jl")
1721
include("samplers.jl")
1822
include("controllers.jl")

0 commit comments

Comments
 (0)