From a1c5ebe7875cd1b59865fe6c2b88c7981a25939d Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 6 Sep 2011 03:07:16 +0000 Subject: * transcode.c: enabled econv newline option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_econv.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 -- cgit v1.2.3