From 371e3f4f1c3833226c16e2d7bcd33ded7437c271 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 15 Oct 2016 15:45:04 +0000 Subject: Add test of DATA.binmode? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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{\ -- cgit v1.2.3