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

Add a convenience value method for numeric literals #1290

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

eregon
Copy link
Member

@eregon eregon commented Aug 19, 2023

From #1098 (comment)

For instance this is necessary for #1237 (comment)

@eregon eregon requested a review from kddnewton August 19, 2023 09:33
@kddnewton
Copy link
Collaborator

Can you add some tests? Particularly just around the rational/imaginary ones.

Copy link
Collaborator

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

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

Just marking this as "request changes" to make it easier to track.

@eregon
Copy link
Member Author

eregon commented Aug 21, 2023

Tests added, and it found a bug for rational+complex (ri) :)

@kddnewton kddnewton merged commit a200ab8 into ruby:main Aug 21, 2023
45 checks passed
@eregon eregon deleted the numeric-nodes-value branch August 21, 2023 15:39
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 this pull request may close these issues.

2 participants