diff options
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r-- | test/io/console/test_io_console.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index a44e5ffff9..c69eec757e 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -68,6 +68,14 @@ class TestIO_Console < Test::Unit::TestCase } end + def test_raw! + helper {|m, s| + s.raw! + s.print "foo\n" + assert_equal("foo\n", m.gets) + } + end + def test_cooked helper {|m, s| assert_send([s, :echo?]) |