-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
equalityIssues relating to equality relations: ==, ===, isequalIssues relating to equality relations: ==, ===, isequalstrings"Strings!""Strings!"
Description
Docs:
==(x, y)
Generic equality operator. Falls back to ===. Should be implemented for all types with a notion of equality, based on the abstract value
that an instance represents. For example, all numeric types are compared by numeric value, ignoring type. Strings are compared as
sequences of characters, ignoring encoding.
<...>
==(a::AbstractString, b::AbstractString) -> Bool
Test whether two strings are equal character by character (technically, Unicode code point by code point).
Actual behavior:
julia> s1 = Base.AnnotatedString("abc def", [(1:1, :x => :y)])
"abc def"
julia> s2 = "abc def"
"abc def"
julia> s1 == s2
false
Either the docs or the implementation are clearly wrong...
Metadata
Metadata
Assignees
Labels
equalityIssues relating to equality relations: ==, ===, isequalIssues relating to equality relations: ==, ===, isequalstrings"Strings!""Strings!"