Skip to content

Add test for reset_variables in Reline::Config - #741

Merged
tompng merged 3 commits into
ruby:masterfrom
ima1zumi:add-test
Sep 3, 2024
Merged

tompng merged 3 commits into
ruby:masterfrom
ima1zumi:add-test

Conversation

@ima1zumi

@ima1zumi ima1zumi commented Sep 2, 2024

Copy link
Copy Markdown
Member

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.

Comment thread lib/reline/config.rb
@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
Copy Markdown
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
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants