mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b90b86cab5
commit
c67a8bba3f
1 changed files with 14 additions and 0 deletions
14
test/net/imap/test_imap.rb
Normal file
14
test/net/imap/test_imap.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require "net/imap"
|
||||
require "test/unit"
|
||||
|
||||
class IMAPTest < Test::Unit::TestCase
|
||||
def test_encode_utf7
|
||||
s = Net::IMAP.encode_utf7("\357\274\241\357\274\242\357\274\243")
|
||||
assert_equal("&,yH,Iv8j-", s)
|
||||
end
|
||||
|
||||
def test_decode_utf7
|
||||
s = Net::IMAP.decode_utf7("&,yH,Iv8j-")
|
||||
assert_equal("\357\274\241\357\274\242\357\274\243", s)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue