diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-15 15:45:04 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-15 15:45:04 +0000 |
commit | d535fe976e481ae9460aa4fd775b3ba673111bde (patch) | |
tree | 19651658d1492a061731c7fc2bb5d3aa18617ac4 /test/ruby/test_io.rb | |
parent | b3f13b0d912519560b9168135bea487842fa43a5 (diff) | |
download | ruby-d535fe976e481ae9460aa4fd775b3ba673111bde.tar.gz |
Add test of DATA.binmode?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-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{\ |