-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn://rubyforge.org/var/svn/jpmobile/trunk/jpmobile@89 37be14ff-8d20-0410-9e9a-d2f6958099bb
- Loading branch information
dara
committed
Jun 23, 2007
1 parent
2ff160f
commit ed8464c
Showing
14 changed files
with
89 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
require File.dirname(__FILE__)+'/helper' | ||
|
||
class DocomoEmoticonTest < Test::Unit::TestCase | ||
def test_docomo_external_unicodecr | ||
assert_equal "", Jpmobile::Emoticon::external_to_unicodecr("\xf8\x9f") | ||
end | ||
def test_docomo_unicodecr_external | ||
assert_equal "\xf8\x9f", Jpmobile::Emoticon::unicodecr_to_external("") | ||
end | ||
def test_docomo_unicodecr_utf8 | ||
assert_equal "\356\230\276", Jpmobile::Emoticon::unicodecr_to_utf8("") | ||
end | ||
def test_docomo_utf8_unicodecr | ||
assert_equal "", Jpmobile::Emoticon::utf8_to_unicodecr("\356\230\276") | ||
end | ||
end | ||
|
||
class AuEmoticonTest < Test::Unit::TestCase | ||
def test_au_external_unicodecr | ||
assert_equal "", Jpmobile::Emoticon::external_to_unicodecr("\xf6\x59") | ||
end | ||
def test_au_unicodecr_external | ||
assert_equal "\xf6\x59", Jpmobile::Emoticon::unicodecr_to_external("") | ||
end | ||
def test_au_unicodecr_utf8 | ||
assert_equal "\356\222\201", Jpmobile::Emoticon::unicodecr_to_utf8("") | ||
end | ||
def test_au_utf8_unicodecr | ||
assert_equal "", Jpmobile::Emoticon::utf8_to_unicodecr("\356\222\201") | ||
end | ||
end | ||
|
||
class SoftbankEmoticonTest < Test::Unit::TestCase | ||
def test_softbank_webcode_cr | ||
assert_equal "", Jpmobile::Emoticon::external_to_unicodecr("\x1b$G!!\x0f") | ||
end | ||
def test_softbank_cr_webcode | ||
assert_equal "\x1b$G!\x0f", Jpmobile::Emoticon::unicodecr_to_external("") | ||
end | ||
def test_softbank_cr_utf8 | ||
assert_equal "\xef\x80\x81", Jpmobile::Emoticon::unicodecr_to_utf8("") | ||
end | ||
def test_softbank_utf8_cr | ||
assert_equal "", Jpmobile::Emoticon::utf8_to_unicodecr("\xef\x80\x81") | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters