comparison test/testStaticDicts.jl @ 721:b2af21a4b376 feature/static_dict

Add todo note
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 16 Mar 2021 22:37:10 +0100
parents 172c55c4cf2e
children 1a8ef927e732
comparison
equal deleted inserted replaced
720:172c55c4cf2e 721:b2af21a4b376
30 @test get(d,1,6) == 2 30 @test get(d,1,6) == 2
31 @test get(d,3,6) == 4 31 @test get(d,3,6) == 4
32 @test get(d,5,6) == 6 32 @test get(d,5,6) == 6
33 end 33 end
34 34
35 @testset "iterate" begin
36 # TODO
37 end
38
35 @testset "merge" begin 39 @testset "merge" begin
36 @test merge( 40 @test merge(
37 StaticDict(1=>3, 2=> 4), 41 StaticDict(1=>3, 2=> 4),
38 StaticDict(3=>5,4=>6)) == StaticDict( 42 StaticDict(3=>5,4=>6)) == StaticDict(
39 1=>3, 2=>4, 3=>5, 4=>6 43 1=>3, 2=>4, 3=>5, 4=>6