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

ruby-changes:54335

From: ko1 <ko1@a...>
Date: Tue, 25 Dec 2018 16:21:51 +0900 (JST)
Subject: [ruby-changes:54335] ko1:r66548 (trunk): fix a test by restoring value checking.

ko1	2018-12-25 16:21:45 +0900 (Tue, 25 Dec 2018)

  New Revision: 66548

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

  Log:
    fix a test by restoring value checking.
    
    * test/ruby/test_literal.rb (test_hash_literal_frozen): restore value
      checking code which is removed accidentaly at r66466.

  Modified files:
    trunk/test/ruby/test_literal.rb
Index: test/ruby/test_literal.rb
===================================================================
--- test/ruby/test_literal.rb	(revision 66547)
+++ test/ruby/test_literal.rb	(revision 66548)
@@ -291,7 +291,8 @@ class TestRubyLiteral < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_literal.rb#L291
       end
 
       ObjectSpace.each_object(Hash) do |a|
-        if a.class == Hash and !a.default_proc and a.size == 3
+        if a.class == Hash and !a.default_proc and a.size == 3 &&
+           a[0] == 1 && a[1] == 4 && a[2] == 17
           # should not be found.
           raise
         end

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

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