diff options
| author | Stan Lo <stan.lo@shopify.com> | 2022-11-03 22:13:07 +0000 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2022-11-03 22:13:11 +0000 |
| commit | a9232038119f2401e6c3d3a4946114b1e878afb5 (patch) | |
| tree | 14465474a9e8aa589bd793d42d96dfbd58c91214 /include/ruby/internal/encoding/string.h | |
| parent | a13836e70d9cc2eb569911030cbd735d68b4042c (diff) | |
[ruby/irb] Provide a base test class and let tests restore encodings
conveniently
(https://github.com/ruby/irb/pull/429)
* Create a base TestIRB::TestCase class
* Save/restore encodings for tests that initializes InputMethod classes
Because `RelineInputMethod#initializes` calls `set_encoding`, which
changes stdio/out/err and Encoding's default encoding values, we need to
make sure any test that directly or indirectly (e.g. through Context)
initializes `RelineInputMethod` restores encodings.
`ReadlineInputMethod` also changes encodings but currently no tests
cover it.
* Remove unnecessary TestHelper module
Since we now have a base TestCase, without_rdoc can just live there.
https://github.com/ruby/irb/commit/c2874ec121
Diffstat (limited to 'include/ruby/internal/encoding/string.h')
0 files changed, 0 insertions, 0 deletions
