summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-15 15:45:04 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-15 15:45:04 +0000
commit371e3f4f1c3833226c16e2d7bcd33ded7437c271 (patch)
tree19651658d1492a061731c7fc2bb5d3aa18617ac4
parent65daf7be940fbf446bfd528856946329db74c0d4 (diff)
Add test of DATA.binmode?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_io.rb12
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{\