Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert_covers treats arrays as maps #405

Open
locker opened this issue Dec 2, 2024 · 0 comments
Open

assert_covers treats arrays as maps #405

locker opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@locker
Copy link
Member

locker commented Dec 2, 2024

assert_covers should treat arrays as scalars, i.e. never assume that one array may cover another unless they are equal. For example, the following assertions must fail while currently they pass:

t.assert_covers({1, 2, 3}, {1, 2})
t.assert_covers({a = {1, 2, 3}}, {a = {1, 2}})
@locker locker added the bug Something isn't working label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant