From 12d48f4ef242eaa48844e9dbbbd5ae22b87870c3 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 26 Nov 2012 11:25:45 +0000 Subject: * test/ruby/test_argf.rb (TestArgf#test_chars): since marshal data is binary, shouldn't pass via text mode. use base64 encoded data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_argf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index a58b70db52..7fb9348c1e 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -781,9 +781,9 @@ class TestArgf < Test::Unit::TestCase def test_chars ruby('-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f| - print Marshal.dump(ARGF.chars.to_a) + print [Marshal.dump(ARGF.chars.to_a)].pack('m') SRC - assert_equal(["1", "\n", "2", "\n", "3", "\n", "4", "\n", "5", "\n", "6", "\n"], Marshal.load(f.read)) + assert_equal(["1", "\n", "2", "\n", "3", "\n", "4", "\n", "5", "\n", "6", "\n"], Marshal.load(f.read.unpack('m').first)) end end -- cgit v1.2.3