Skip to content

same does not deepcompare keys #193

@RiskoZoSlovenska

Description

@RiskoZoSlovenska

The following fails, but I would not expect it to and I haven't seen it listed as a limitation anywhere:

local assert = require("luassert")
assert.are.same({ [{}] = 1 }, { [{}] = 1 }) -- lua: rep.lua:2: Expected objects to be the same.

I'm not sure a feasible fix exists given the fact that there's no easy way to tell which key to compare with which, but it would be nice to at least have a note about this limitation in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions