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

ruby-changes:33189

From: usa <ko1@a...>
Date: Tue, 4 Mar 2014 23:00:53 +0900 (JST)
Subject: [ruby-changes:33189] usa:r45268 (trunk): * test/ruby/test_eval.rb (TestEval#make_test_binding): renamed.

usa	2014-03-04 23:00:48 +0900 (Tue, 04 Mar 2014)

  New Revision: 45268

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

  Log:
    * test/ruby/test_eval.rb (TestEval#make_test_binding): renamed.
      it's not test method.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_eval.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45267)
+++ ChangeLog	(revision 45268)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Mar  4 23:00:18 2014  NAKAMURA Usaku  <usa@r...>
+
+	* test/ruby/test_eval.rb (TestEval#make_test_binding): renamed.
+	  it's not test method.
+
 Tue Mar  4 20:50:59 2014  Masaya Tarui  <tarui@r...>
 
 	* st.c (st_foreach): fix type of hash. not st_data_t but st_index_t.
Index: test/ruby/test_eval.rb
===================================================================
--- test/ruby/test_eval.rb	(revision 45267)
+++ test/ruby/test_eval.rb	(revision 45268)
@@ -238,7 +238,7 @@ class TestEval < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_eval.rb#L238
   # From ruby/test/ruby/test_eval.rb
   #
 
-  def test_ev
+  def make_test_binding
     local1 = "local1"
     lambda {
       local2 = "local2"
@@ -273,7 +273,7 @@ class TestEval < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_eval.rb#L273
     assert_equal(5, eval("i"))
     assert(eval("defined? i"))
 
-    x = test_ev
+    x = make_test_binding
     assert_equal("local1", eval("local1", x)) # normal local var
     assert_equal("local2", eval("local2", x)) # nested local var
     bad = true

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

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