[前][次][番号順一覧][スレッド一覧]

ruby-changes:52030

From: kazu <ko1@a...>
Date: Thu, 9 Aug 2018 17:49:16 +0900 (JST)
Subject: [ruby-changes:52030] kazu:r64246 (trunk): Skip test_inplace_nonascii if external encoding is us-ascii

kazu	2018-08-09 17:49:10 +0900 (Thu, 09 Aug 2018)

  New Revision: 64246

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64246

  Log:
    Skip test_inplace_nonascii if external encoding is us-ascii

  Modified files:
    trunk/test/ruby/test_argf.rb
Index: test/ruby/test_argf.rb
===================================================================
--- test/ruby/test_argf.rb	(revision 64245)
+++ test/ruby/test_argf.rb	(revision 64246)
@@ -258,6 +258,9 @@ class TestArgf < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_argf.rb#L258
   def test_inplace_nonascii
     ext = Encoding.default_external or
       skip "no default external encoding"
+    if ext == Encoding::US_ASCII
+      skip "external encoding is us-ascii"
+    end
     t = nil
     ["\u{3042}", "\u{e9}"].any? {|n| t = make_tempfile(n.encode(ext))} or
       skip "no name to test"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]