Skip to content

Commit

Permalink
wrap tests by Emoji module.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Mar 12, 2010
1 parent 73fc3b5 commit f4f7c3d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/ruby/enc/test_emoji.rb
Original file line number Diff line number Diff line change
@@ -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") }
Expand All @@ -9,6 +11,8 @@ def test_shift_jis
end

class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase
include Emoji

def setup
@codes = {
"UTF8-DoCoMo" => utf8_docomo("\u{E63E}"),
Expand All @@ -29,6 +33,8 @@ def test_convert
end

class TestDoCoMo < Test::Unit::TestCase
include Emoji

def setup
setup_instance_variable(self)
end
Expand Down Expand Up @@ -109,6 +115,8 @@ def test_to_softbank
end

class TestKDDI < Test::Unit::TestCase
include Emoji

def setup
setup_instance_variable(self)
end
Expand Down Expand Up @@ -233,6 +241,8 @@ def test_to_softbank
end

class TestSoftBank < Test::Unit::TestCase
include Emoji

def setup
setup_instance_variable(self)
end
Expand Down Expand Up @@ -428,3 +438,5 @@ def stateless_iso2022jp_kddi(str)
def to_stateless_iso2022jp_kddi(str)
str.encode("stateless-ISO-2022-JP-KDDI")
end

end

0 comments on commit f4f7c3d

Please sign in to comment.