ruby-changes:38513
From: nobu <ko1@a...>
Date: Thu, 21 May 2015 20:29:11 +0900 (JST)
Subject: [ruby-changes:38513] nobu:r50594 (trunk): test_method.rb: add assertion
nobu 2015-05-21 20:28:55 +0900 (Thu, 21 May 2015) New Revision: 50594 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50594 Log: test_method.rb: add assertion * test/ruby/test_method.rb (test_to_proc_binding): assertion for dynamically set variable names. Modified files: trunk/test/ruby/test_method.rb Index: test/ruby/test_method.rb =================================================================== --- test/ruby/test_method.rb (revision 50593) +++ test/ruby/test_method.rb (revision 50594) @@ -907,5 +907,6 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L907 assert_equal(456, b.local_variable_set(:bar, 456)) assert_equal(123, b.local_variable_get(:foo)) assert_equal(456, b.local_variable_get(:bar)) + assert_equal([:bar, :foo], b.local_variables.sort) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/