summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-10 18:13:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-10 18:13:56 +0000
commit04e65c3862fd049a4fc972b67b739e3894b231af (patch)
tree6ad45e9bcc3471d70347b7d6c053a297d3e170bb /test
parent84a867fae8ef7bb0947e3809b190f1e36ca8fe80 (diff)
merge revision(s) 33200: [Backport #5794]
* transcode.c: enabled econv newline option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_econv.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb
index 765616da3d..080d027c4a 100644
--- a/test/ruby/test_econv.rb
+++ b/test/ruby/test_econv.rb
@@ -902,4 +902,10 @@ class TestEncodingConverter < Test::Unit::TestCase
"".encode("euc-jp", :undef => :replace, :replace => broken)
}
end
+
+ def test_newline_option
+ ec1 = Encoding::Converter.new("", "", universal_newline: true)
+ ec2 = Encoding::Converter.new("", "", newline: :universal)
+ assert_equal(ec1, ec2)
+ end
end