diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-30 00:20:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-30 00:20:03 +0000 |
commit | a7a11f078ef1f45f51f8f48c1d091986fe14a8a8 (patch) | |
tree | dc8b8c2f0cc98eb26b6a8e3172515c60a09820e4 /test | |
parent | c61e9a7f246f778fb4b687f92a016e66227ed8d9 (diff) | |
download | ruby-a7a11f078ef1f45f51f8f48c1d091986fe14a8a8.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |