Mercurial > repos > public > sbplib_julia
changeset 742:6377a5fba0a1 feature/static_dict
Add a simple test for iteration
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 17 Mar 2021 22:13:55 +0100 |
parents | 94941a062124 |
children | ddb52db10f37 |
files | test/testStaticDicts.jl |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 94941a062124 -r 6377a5fba0a1 test/testStaticDicts.jl --- a/test/testStaticDicts.jl Wed Mar 17 22:08:59 2021 +0100 +++ b/test/testStaticDicts.jl Wed Mar 17 22:13:55 2021 +0100 @@ -50,7 +50,10 @@ end @testset "iterate" begin - # TODO + pairs = [1=>2, 3=>4, 5=>6] + + d = StaticDict(pairs...) + @test collect(d) == pairs end @testset "merge" begin