Skip to content

Added tests for the Ruby kernel #107

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mishushakov
Copy link
Member

@mishushakov mishushakov self-assigned this May 14, 2025
@mishushakov mishushakov added the improvement Improvement for current functionality label May 14, 2025
@mishushakov mishushakov changed the title Added tests for the Ruby kernel (#106) Added tests for the Ruby kernel May 14, 2025
Copy link
Contributor

@0div 0div left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd make sure a few Ruby 3.0+ syntax changes work via additional tests such as:

  • Rightward assignment: 42 => x # Assigns 42 to x
  • Pattern matching: {a: 1, b: 2} => {a:} # Extracts a (= 1)
  • Find pattern:
case [1, 2, 3, 4, 5]
in [*pre, 3, *post]
  [pre, post]  # => [[1, 2], [4, 5]]
end

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

Successfully merging this pull request may close these issues.

2 participants