Skip to content

Commit 2e031b3

Browse files
authored
abbility to do address checks more generally
1 parent d8650bf commit 2e031b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ using InternedStrings
33

44
using Test, Random, Base.GC
55

6-
addr_eq(a,b) = pointer(a) === pointer(b)
6+
addr_eq(a::String, b::String) = pointer(a) === pointer(b)
7+
addr_eq(a, b) = objectid(a) === objectid(b)
8+
79

810
@testset "All kinds of types" begin include("all_kinds_of_types.jl") end
911
@testset "String macro" begin include("string_macro.jl") end

0 commit comments

Comments
 (0)