diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-12 14:08:08 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-12 14:08:08 +0000 |
commit | f4f7c3db4f53ef19cdd1ba075930c3c5fa5a9681 (patch) | |
tree | aaf91c7e72a578a9d94f6a8d12ac4ddb2b5bada8 /test/ruby/enc | |
parent | 73fc3b5a34edb7a681e0000d2879cb4a79772945 (diff) | |
download | ruby-f4f7c3db4f53ef19cdd1ba075930c3c5fa5a9681.tar.gz |
wrap tests by Emoji module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/enc')
-rw-r--r-- | test/ruby/enc/test_emoji.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/enc/test_emoji.rb b/test/ruby/enc/test_emoji.rb index 5a376ac7a1..2837e17ad1 100644 --- a/test/ruby/enc/test_emoji.rb +++ b/test/ruby/enc/test_emoji.rb @@ -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 @@ class TestRenameSJIS < Test::Unit::TestCase 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 @@ class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase end class TestDoCoMo < Test::Unit::TestCase + include Emoji + def setup setup_instance_variable(self) end @@ -109,6 +115,8 @@ class TestDoCoMo < Test::Unit::TestCase end class TestKDDI < Test::Unit::TestCase + include Emoji + def setup setup_instance_variable(self) end @@ -233,6 +241,8 @@ class TestKDDI < Test::Unit::TestCase end class TestSoftBank < Test::Unit::TestCase + include Emoji + def setup setup_instance_variable(self) end @@ -428,3 +438,5 @@ end def to_stateless_iso2022jp_kddi(str) str.encode("stateless-ISO-2022-JP-KDDI") end + +end |