ruby-changes:22467
From: nagachika <ko1@a...>
Date: Thu, 9 Feb 2012 23:44:51 +0900 (JST)
Subject: [ruby-changes:22467] nagachika:r34516 (trunk): * test/pathname/test_pathname.rb (test_binread): add assertion to
nagachika 2012-02-09 23:44:10 +0900 (Thu, 09 Feb 2012) New Revision: 34516 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34516 Log: * test/pathname/test_pathname.rb (test_binread): add assertion to check encoding. Modified files: trunk/ChangeLog trunk/test/pathname/test_pathname.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 34515) +++ ChangeLog (revision 34516) @@ -1,3 +1,8 @@ +Thu Feb 9 23:41:44 2012 CHIKANAGA Tomoyuki <nagachika00@g...> + + * test/pathname/test_pathname.rb (test_binread): add assertion to + check encoding. + Thu Feb 9 16:48:19 2012 Nobuyoshi Nakada <nobu@r...> * ext/dl/dl.c (Init_dl): fix mangled document. Index: test/pathname/test_pathname.rb =================================================================== --- test/pathname/test_pathname.rb (revision 34515) +++ test/pathname/test_pathname.rb (revision 34516) @@ -710,7 +710,9 @@ def test_binread with_tmpchdir('rubytest-pathname') {|dir| open("a", "w") {|f| f.write "abc" } - assert_equal("abc", Pathname("a").binread) + str = Pathname("a").binread + assert_equal("abc", str) + assert_equal(Encoding::ASCII_8BIT, str.encoding) } end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/