changeset 734:1a8ef927e732 feature/static_dict

Add test for equality using ===
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 17 Mar 2021 21:24:57 +0100
parents 103f61d09a8b
children 3e0b0b44868e
files test/testStaticDicts.jl
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/testStaticDicts.jl	Wed Mar 17 20:21:36 2021 +0100
+++ b/test/testStaticDicts.jl	Wed Mar 17 21:24:57 2021 +0100
@@ -21,7 +21,10 @@
     end
 
     @testset "equality" begin
-        @test StaticDict(1=>1) == StaticDict(1=>1) # This is not true for the regular Dict
+        @test StaticDict(1=>1) == StaticDict(1=>1)
+
+        # The following is not true for the regular Dict
+        @test StaticDict(1=>1) === StaticDict(1=>1)
     end
 
     @testset "get" begin