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 test for reset_variables in Reline::Config #741

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

ima1zumi
Copy link
Member

@ima1zumi ima1zumi commented Sep 2, 2024

This PR adds a test for the reset_variables method in the Reline::Config class. The new test ensures that the method correctly resets internal states. Additionally, the test has been refactored for improved readability.

@@ -62,10 +62,11 @@ def reset_variables
@keyseq_timeout = 500
@test_mode = false
@autocompletion = false
@convert_meta = true if seven_bit_encoding?(Reline::IOGate.encoding)
@convert_meta = seven_bit_encoding?(Reline::IOGate.encoding)
Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it would be better to use true/false instead of nil and true, so I made the change.

@tompng tompng merged commit 386f619 into ruby:master Sep 3, 2024
40 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Sep 3, 2024
(ruby/reline#741)

* Fix reset variables

* Add assertion for reload

* Add helper method to get instance variable value of Reline::Config

ruby/reline@386f619ff5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants