diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-06-27 16:25:30 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-06-27 07:25:37 +0000 |
| commit | 64a52c25fef8e156630fea559ced7286fe5c3beb (patch) | |
| tree | ed1e2297d3d31b1bd4f481e59a401196a122f313 /test/io/console | |
| parent | 528b75cc14f76ef703f0b22ccdd6db4b398982cc (diff) | |
[ruby/io-console] Fix a name error
https://github.com/ruby/io-console/commit/e0398acad4
Diffstat (limited to 'test/io/console')
| -rw-r--r-- | test/io/console/test_io_console.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index cdaa255426..d43095bc4c 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -367,14 +367,14 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do w.print cc w.flush result = EnvUtil.timeout(3) {r.gets} - if res + if result case cc when 0..31 cc = "^" + (cc.ord | 0x40).chr when 127 cc = "^?" end - res.sub!(cc, "") + result.sub!(cc, "") end assert_equal(expect, result.chomp) end |
