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

ruby-changes:32214

From: a_matsuda <ko1@a...>
Date: Fri, 20 Dec 2013 13:44:17 +0900 (JST)
Subject: [ruby-changes:32214] a_matsuda:r44293 (trunk): Fix typo in tests

a_matsuda	2013-12-20 13:44:09 +0900 (Fri, 20 Dec 2013)

  New Revision: 44293

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44293

  Log:
    Fix typo in tests
    
    * test/ruby/test_proc.rb:  s/overriden/overridden/
    * test/ruby/test_refinement.rb:  ditto

  Modified files:
    trunk/test/ruby/test_proc.rb
    trunk/test/ruby/test_refinement.rb
Index: test/ruby/test_proc.rb
===================================================================
--- test/ruby/test_proc.rb	(revision 44292)
+++ test/ruby/test_proc.rb	(revision 44293)
@@ -1198,12 +1198,12 @@ class TestProc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_proc.rb#L1198
     }
   end
 
-  def test_overriden_lambda
+  def test_overridden_lambda
     bug8345 = '[ruby-core:54687] [Bug #8345]'
     assert_normal_exit('def lambda; end; method(:puts).to_proc', bug8345)
   end
 
-  def test_overriden_proc
+  def test_overridden_proc
     bug8345 = '[ruby-core:54688] [Bug #8345]'
     assert_normal_exit('def proc; end; ->{}.curry', bug8345)
   end
Index: test/ruby/test_refinement.rb
===================================================================
--- test/ruby/test_refinement.rb	(revision 44292)
+++ test/ruby/test_refinement.rb	(revision 44293)
@@ -246,13 +246,13 @@ class TestRefinement < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L246
   module FixnumPlusExt
     refine Fixnum do
       def self.method_added(*args); end
-      def +(other) "overriden" end
+      def +(other) "overridden" end
     end
   end
 
   def test_override_builtin_method_with_method_added
     assert_equal(3, 1 + 2)
-    assert_equal("overriden", eval_using(FixnumPlusExt, "1 + 2"))
+    assert_equal("overridden", eval_using(FixnumPlusExt, "1 + 2"))
     assert_equal(3, 1 + 2)
   end
 

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

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