1 parent f5fd5e9 commit e2d32d0Copy full SHA for e2d32d0
1 file changed
test/test_plugins.jl
@@ -15,21 +15,17 @@ end
15
16
@testset "PluginDict basic operations" begin
17
pd = Cruise.PluginDict()
18
- # store a plain value
19
- pd[:foo] = (42)
20
- @test haskey(pd, :foo)
21
- @test pd[:foo] == 42
22
23
# store by type
24
dsys = DummySys()
25
pd[DummySys] = dsys
26
- @test haskey(pd, Symbol(DummySys))
+ @test haskey(pd, DummySys)
27
v = pd[DummySys]
28
@test typeof(v) == DummySys
29
30
# delete
31
- delete!(pd, :foo)
32
- @test !haskey(pd, :foo)
+ delete!(pd, DummySys)
+ @test !haskey(pd, DummySys)
33
34
# values and keys do not error
35
_ = keys(pd)
0 commit comments