summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
author(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-21 08:15:57 +0000
committer(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-21 08:15:57 +0000
commit1de3bce9adeb99c9543f47f6afc2305eb2cf961d (patch)
tree869071059b2382254ff103253f1eb51e0437c8cb /test
parent89130955d6c387da86b471b2f47bebb521da9e14 (diff)
downloadruby-1de3bce9adeb99c9543f47f6afc2305eb2cf961d.tar.gz
ruby-1de3bce9adeb99c9543f47f6afc2305eb2cf961d.tar.xz
ruby-1de3bce9adeb99c9543f47f6afc2305eb2cf961d.zip
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/net/imap/test_imap.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
new file mode 100644
index 000000000..aa4215224
--- /dev/null
+++ b/test/net/imap/test_imap.rb
@@ -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