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

Macros: Test addition between ArrayLiteral and TupleLiteral #12639

Merged

Conversation

caspiano
Copy link
Contributor

Adds a few missing tests of the behaviour of addition between ArrayLiterals and TupleLiterals.

The following behaviour is tested...

{%
  a = [1, 2, 3, 4]
  b = {3, 4, 5, 6}
  c = a + b
  d = b + a
  puts c # => [1, 2, 3, 4, 3, 4, 5, 6]
  puts d # => {3, 4, 5, 6, 1, 2, 3, 4}
%}

@beta-ziliani beta-ziliani added this to the 1.7.0 milestone Oct 28, 2022
@straight-shoota straight-shoota merged commit 3a23157 into crystal-lang:master Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants