mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
wrap tests by Emoji module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
73fc3b5a34
commit
f4f7c3db4f
1 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
|
module Emoji
|
||||||
|
|
||||||
class TestRenameSJIS < Test::Unit::TestCase
|
class TestRenameSJIS < Test::Unit::TestCase
|
||||||
def test_shift_jis
|
def test_shift_jis
|
||||||
assert_raise(ArgumentError) { "".force_encoding("Shift_JIS-DoCoMo") }
|
assert_raise(ArgumentError) { "".force_encoding("Shift_JIS-DoCoMo") }
|
||||||
|
@ -9,6 +11,8 @@ class TestRenameSJIS < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase
|
class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase
|
||||||
|
include Emoji
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@codes = {
|
@codes = {
|
||||||
"UTF8-DoCoMo" => utf8_docomo("\u{E63E}"),
|
"UTF8-DoCoMo" => utf8_docomo("\u{E63E}"),
|
||||||
|
@ -29,6 +33,8 @@ class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestDoCoMo < Test::Unit::TestCase
|
class TestDoCoMo < Test::Unit::TestCase
|
||||||
|
include Emoji
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
setup_instance_variable(self)
|
setup_instance_variable(self)
|
||||||
end
|
end
|
||||||
|
@ -109,6 +115,8 @@ class TestDoCoMo < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestKDDI < Test::Unit::TestCase
|
class TestKDDI < Test::Unit::TestCase
|
||||||
|
include Emoji
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
setup_instance_variable(self)
|
setup_instance_variable(self)
|
||||||
end
|
end
|
||||||
|
@ -233,6 +241,8 @@ class TestKDDI < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestSoftBank < Test::Unit::TestCase
|
class TestSoftBank < Test::Unit::TestCase
|
||||||
|
include Emoji
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
setup_instance_variable(self)
|
setup_instance_variable(self)
|
||||||
end
|
end
|
||||||
|
@ -428,3 +438,5 @@ end
|
||||||
def to_stateless_iso2022jp_kddi(str)
|
def to_stateless_iso2022jp_kddi(str)
|
||||||
str.encode("stateless-ISO-2022-JP-KDDI")
|
str.encode("stateless-ISO-2022-JP-KDDI")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue