diff options
-rw-r--r-- | test/ruby/test_io.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index fa3b3578db..e784c30c07 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2469,6 +2469,18 @@ End } end + def test_DATA_binmode + make_tempfile {|t| + open(t.path, "w") {|f| + f.puts <<-SRC +puts DATA.binmode? +__END__ + SRC + } + assert_in_out_err(t.path, [], %w(false)) + } + end + def test_threaded_flush bug3585 = '[ruby-core:31348]' src = %q{\ |