diff --git a/src/extensions.jl b/src/extensions.jl index da75d19..deb7bfc 100644 --- a/src/extensions.jl +++ b/src/extensions.jl @@ -1,4 +1,5 @@ lower(x::Dict{Symbol}) = BSONDict(x) +lower(x::BSONDict) = BSONDict(x) # Basic Types diff --git a/test/runtests.jl b/test/runtests.jl index d5d6c41..04c452f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -41,6 +41,7 @@ end @test roundtrip_equal(fill(S(), (1,3))) @test roundtrip_equal(Set([1,2,3])) @test roundtrip_equal(Dict("a"=>1)) + @test roundtrip_equal(Dict(:a => 1, :b => [1, 2])) @test roundtrip_equal(T(())) end