Skip to content

check_equal for DoesNotExist #109

Open
@mzgubic

Description

@mzgubic

We have check_equal for Zero() but not for DoesNotExist(), which currently breaks

julia> check_equal(2.0, DoesNotExist())
ERROR: MethodError: no method matching length(::DoesNotExist)
...

julia> check_equal(Zero(), DoesNotExist())
ERROR: StackOverflowError:
...

We should probably have DoesNotExist() be equal to itself, and nothing else

check_equal(::DoesNotExist, x; kwargs...) = @test false
check_equal(x, ::DoesNotExist; kwargs...) = @test false
check_equal(x::DoesNotExist, y::DoesNotExist; kwargs...) = @test true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions