summaryrefslogtreecommitdiff
path: root/test/io
diff options
context:
space:
mode:
Diffstat (limited to 'test/io')
-rw-r--r--test/io/console/test_io_console.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 2e46176616..7d919c758c 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -70,4 +70,13 @@ class TestIO_Console < Test::Unit::TestCase
}
end
+ def test_oflush
+ PTY.open {|m, s|
+ s.print "a\n"
+ s.oflush
+ s.print "b\n"
+ assert_equal("b\r\n", m.readpartial(10))
+ }
+ end
+
end