diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-07 23:02:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-07 23:02:29 +0000 |
commit | 6edea435cac2c11ec31d49cb1738e4006f16ef65 (patch) | |
tree | a62e026779b7e70f8ebb079fe050eee81b2fc0b3 /test | |
parent | 8b5a37b6020563ce2b88a54b5676abc7a9528386 (diff) | |
download | ruby-6edea435cac2c11ec31d49cb1738e4006f16ef65.tar.gz |
console.c: unpaired size
* ext/io/console/console.c (console_set_winsize): reject unpaired
pixel size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/io/console/test_io_console.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index f9f7b3d18b..581500dfd7 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -257,6 +257,7 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do else assert(false, "winsize on #{path} succeed: #{s.inspect}") end + assert_raise(ArgumentError) {io.winsize = [0, 0, 0]} end end end |