[前][次][番号順一覧][スレッド一覧]

ruby-changes:41307

From: nobu <ko1@a...>
Date: Wed, 30 Dec 2015 09:20:11 +0900 (JST)
Subject: [ruby-changes:41307] nobu:r53379 (trunk): test_io.rb: test for rb_io_modestr_fmode

nobu	2015-12-30 09:20:03 +0900 (Wed, 30 Dec 2015)

  New Revision: 53379

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53379

  Log:
    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]

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_io.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53378)
+++ ChangeLog	(revision 53379)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 30 09:20:00 2015  Yuki Kurihara  <co000ri@g...>
+
+	* 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@g...>
 
 	* test/stringio/test_stringio.rb (test_initialize): add test for
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 53378)
+++ test/ruby/test_io.rb	(revision 53379)
@@ -1906,6 +1906,10 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1906
       assert_raise(ArgumentError) do
         open(t.path, "rr") { }
       end
+
+      assert_raise(ArgumentError) do
+        open(t.path, "rbt") { }
+      end
     }
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]