ruby-changes:15018
From: akr <ko1@a...>
Date: Fri, 12 Mar 2010 23:08:20 +0900 (JST)
Subject: [ruby-changes:15018] Ruby:r26893 (trunk): wrap tests by Emoji module.
akr 2010-03-12 23:08:08 +0900 (Fri, 12 Mar 2010) New Revision: 26893 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26893 Log: wrap tests by Emoji module. Modified files: trunk/test/ruby/enc/test_emoji.rb Index: test/ruby/enc/test_emoji.rb =================================================================== --- test/ruby/enc/test_emoji.rb (revision 26892) +++ test/ruby/enc/test_emoji.rb (revision 26893) @@ -1,5 +1,7 @@ require 'test/unit' +module Emoji + class TestRenameSJIS < Test::Unit::TestCase def test_shift_jis assert_raise(ArgumentError) { "".force_encoding("Shift_JIS-DoCoMo") } @@ -9,6 +11,8 @@ end class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase + include Emoji + def setup @codes = { "UTF8-DoCoMo" => utf8_docomo("\u{E63E}"), @@ -29,6 +33,8 @@ end class TestDoCoMo < Test::Unit::TestCase + include Emoji + def setup setup_instance_variable(self) end @@ -109,6 +115,8 @@ end class TestKDDI < Test::Unit::TestCase + include Emoji + def setup setup_instance_variable(self) end @@ -233,6 +241,8 @@ end class TestSoftBank < Test::Unit::TestCase + include Emoji + def setup setup_instance_variable(self) end @@ -428,3 +438,5 @@ def to_stateless_iso2022jp_kddi(str) str.encode("stateless-ISO-2022-JP-KDDI") end + +end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/