mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_eval.rb (TestEval#make_test_binding): renamed.
it's not test method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0562c4f76d
commit
77cf13a588
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Mar 4 23:00:18 2014 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Tue Mar 4 20:50:59 2014 Masaya Tarui <tarui@ruby-lang.org>
|
||||||
|
|
||||||
* st.c (st_foreach): fix type of hash. not st_data_t but st_index_t.
|
* st.c (st_foreach): fix type of hash. not st_data_t but st_index_t.
|
||||||
|
|
|
@ -238,7 +238,7 @@ class TestEval < Test::Unit::TestCase
|
||||||
# From ruby/test/ruby/test_eval.rb
|
# From ruby/test/ruby/test_eval.rb
|
||||||
#
|
#
|
||||||
|
|
||||||
def test_ev
|
def make_test_binding
|
||||||
local1 = "local1"
|
local1 = "local1"
|
||||||
lambda {
|
lambda {
|
||||||
local2 = "local2"
|
local2 = "local2"
|
||||||
|
@ -273,7 +273,7 @@ class TestEval < Test::Unit::TestCase
|
||||||
assert_equal(5, eval("i"))
|
assert_equal(5, eval("i"))
|
||||||
assert(eval("defined? i"))
|
assert(eval("defined? i"))
|
||||||
|
|
||||||
x = test_ev
|
x = make_test_binding
|
||||||
assert_equal("local1", eval("local1", x)) # normal local var
|
assert_equal("local1", eval("local1", x)) # normal local var
|
||||||
assert_equal("local2", eval("local2", x)) # nested local var
|
assert_equal("local2", eval("local2", x)) # nested local var
|
||||||
bad = true
|
bad = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue