1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-12-30 00:20:03 +00:00
parent 3586aef4b8
commit d252e224f6
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Wed Dec 30 09:20:00 2015 Yuki Kurihara <co000ri@gmail.com>
* test/stringio/test_io.rb (test_flag): add assertion for error when
text and binary mode are mixed.
[ruby-dev:49465] [Feature #11921]
Wed Dec 30 08:43:59 2015 Yuki Kurihara <co000ri@gmail.com>
* test/stringio/test_stringio.rb (test_initialize): add test for

View file

@ -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