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

Tests for records should fail #3901

Closed
vitoyucepi opened this issue May 4, 2024 · 0 comments · Fixed by #3904
Closed

Tests for records should fail #3901

vitoyucepi opened this issue May 4, 2024 · 0 comments · Fixed by #3904

Comments

@vitoyucepi
Copy link
Collaborator

Describe the bug
In main branch tests should fail for

x = {foo=123}
y = {gni="aabb"}
test.equal({...x, ...y}, {foo=123, gni="aabb"})
test.equal({...x, gna=3.14, ...y}, {foo=123, bla=3.14, gni="aabb"})
test.equal(
{...x, gna=3.14, ...y, foo="bar"}, {foo="bar", bla=3.14, gni="aabb"}
)

To Reproduce

x = {foo=123}
y = {gni="aabb"}
a = {...x, gna=3.14, ...y}
print(a)

should be

{
  foo=123,
  gna=3.14,
  gni="aabb"
}

Expected behavior

x = {foo=123}
y = {gni="aabb"}
test.equal({...x, gna=3.14, ...y}, {foo=123, gna=3.14, gni="aabb"})
test.not.equal({...x, gna=3.14, ...y}, {foo=123, bla=3.14, gni="aabb"})

Version details

Install method
N/A

Common issues
#3519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant