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

ruby-changes:32398

From: nobu <ko1@a...>
Date: Wed, 1 Jan 2014 22:11:35 +0900 (JST)
Subject: [ruby-changes:32398] nobu:r44477 (trunk): test_transcode.rb: add messages

nobu	2014-01-01 22:11:24 +0900 (Wed, 01 Jan 2014)

  New Revision: 44477

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

  Log:
    test_transcode.rb: add messages
    
    * test/ruby/test_transcode.rb (test_valid_dummy_encoding): add
      assertion messages and suppress a warning.

  Modified files:
    trunk/test/ruby/test_transcode.rb
Index: test/ruby/test_transcode.rb
===================================================================
--- test/ruby/test_transcode.rb	(revision 44476)
+++ test/ruby/test_transcode.rb	(revision 44477)
@@ -2085,10 +2085,10 @@ class TestTranscode < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_transcode.rb#L2085
     bug9314 = '[ruby-core:59354] [Bug #9314]'
     assert_separately(%W[- -- #{bug9314}], <<-'end;')
     bug = ARGV.shift
-    result = assert_nothing_raised(TypeError) {break "test".encode(Encoding::UTF_16)}
-    assert_equal("\xFE\xFF\x00t\x00e\x00s\x00t", result.b)
-    result = assert_nothing_raised(TypeError) {break "test".encode(Encoding::UTF_32)}
-    assert_equal("\x00\x00\xFE\xFF\x00\x00\x00t\x00\x00\x00e\x00\x00\x00s\x00\x00\x00t", result.b)
+    result = assert_nothing_raised(TypeError, bug) {break "test".encode(Encoding::UTF_16)}
+    assert_equal("\xFE\xFF\x00t\x00e\x00s\x00t", result.b, bug)
+    result = assert_nothing_raised(TypeError, bug) {break "test".encode(Encoding::UTF_32)}
+    assert_equal("\x00\x00\xFE\xFF\x00\x00\x00t\x00\x00\x00e\x00\x00\x00s\x00\x00\x00t", result.b, bug)
     end;
   end
 end

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

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