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

ruby-changes:46698

From: stomar <ko1@a...>
Date: Sat, 20 May 2017 19:21:50 +0900 (JST)
Subject: [ruby-changes:46698] stomar:r58813 (trunk): prime.rb: remove alias after timeout test

stomar	2017-05-20 19:21:44 +0900 (Sat, 20 May 2017)

  New Revision: 58813

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

  Log:
    prime.rb: remove alias after timeout test
    
    * test/test_prime.rb: remove alias after timeout test.
    
    * lib/prime.rb: fix typo.

  Modified files:
    trunk/lib/prime.rb
    trunk/test/test_prime.rb
Index: test/test_prime.rb
===================================================================
--- test/test_prime.rb	(revision 58812)
+++ test/test_prime.rb	(revision 58813)
@@ -189,6 +189,7 @@ class TestPrime < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_prime.rb#L189
     ensure
       class << Integer
         alias_method :sqrt, :org_sqrt
+        remove_method :org_sqrt
       end
     end
 
Index: lib/prime.rb
===================================================================
--- lib/prime.rb	(revision 58812)
+++ lib/prime.rb	(revision 58813)
@@ -419,7 +419,7 @@ class Prime https://github.com/ruby/ruby/blob/trunk/lib/prime.rb#L419
     end
   end
 
-  # Internal use. An implementation of eratosthenes' sieve
+  # Internal use. An implementation of Eratosthenes' sieve
   class EratosthenesSieve
     include Singleton
 

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

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