diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-06 03:07:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-06 03:07:16 +0000 |
commit | a1c5ebe7875cd1b59865fe6c2b88c7981a25939d (patch) | |
tree | c2dcc0d87c5fd11b04389b28b53116af9bb44717 /test/ruby/test_econv.rb | |
parent | 80f54e68108a11447168d299f46abce461565f27 (diff) |
* transcode.c: enabled econv newline option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_econv.rb')
-rw-r--r-- | test/ruby/test_econv.rb | 6 |
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 |