From d252e224f6b2e2740985304018fe8a31b080e009 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 30 Dec 2015 00:20:03 +0000 Subject: test_io.rb: test for rb_io_modestr_fmode * test/stringio/test_io.rb (test_flag): add assertion for error when text and binary mode are mixed. [ruby-dev:49465] [Feature #11921] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby/test_io.rb') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 2b79acea09..33a2ab883d 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1906,6 +1906,10 @@ class TestIO < Test::Unit::TestCase assert_raise(ArgumentError) do open(t.path, "rr") { } end + + assert_raise(ArgumentError) do + open(t.path, "rbt") { } + end } end -- cgit v1.2.3