From 7fef733b9de3300b1b46a101a723f8a9548d6b03 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 29 Jun 2008 16:53:49 +0000 Subject: [PATCH] * test/ruby/test_parse.rb: remove tests for open_args. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_parse.rb | 48 ----------------------------------------- 2 files changed, 4 insertions(+), 48 deletions(-) diff --git a/ChangeLog b/ChangeLog index 92ae8ea1ba..e3ecd143c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 30 01:52:05 2008 Yusuke Endoh + + * test/ruby/test_parse.rb: remove tests for open_args. + Sun Jun 29 23:01:54 2008 Tanaka Akira * string.c (rb_str_format_m): make tmp volatile to avoid possible GC diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index c02ad38f5a..e372ff6367 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -122,45 +122,10 @@ class TestParse < Test::Unit::TestCase @baz = r + (block_given? ? [yield] : []) end - assert_nothing_raised do - t.instance_eval "baz ()" - end - assert_equal([], t.instance_eval { @baz }) - assert_nothing_raised do t.instance_eval "baz (1), 2" end assert_equal([1, 2], t.instance_eval { @baz }) - - assert_nothing_raised do - t.instance_eval "baz (3, 4)" - end - assert_equal([3, 4], t.instance_eval { @baz }) - - assert_nothing_raised do - t.instance_eval "baz (5, &proc{6})" - end - assert_equal([5, 6], t.instance_eval { @baz }) - - assert_nothing_raised do - t.instance_eval "baz (7 => 8)" - end - assert_equal([{ 7 => 8 }], t.instance_eval { @baz }) - - assert_nothing_raised do - t.instance_eval "baz (9, 10 => 11)" - end - assert_equal([9, { 10 => 11 }], t.instance_eval { @baz }) - - assert_nothing_raised do - t.instance_eval "baz (12, 13, 14 => 15)" - end - assert_equal([12, 13, { 14 => 15 }], t.instance_eval { @baz }) - - assert_nothing_raised do - t.instance_eval "baz (&proc {16})" - end - assert_equal([16], t.instance_eval { @baz }) end def test_mlhs_node @@ -288,19 +253,6 @@ class TestParse < Test::Unit::TestCase assert_equal(-4.0, a) end - def test_open_args - o = Object.new - def o.foo(*r); r.inject(42, :+); end - - a = nil - assert_nothing_raised do - o.instance_eval <<-END - a = foo () - END - end - assert_equal(42, a) - end - def test_block_variable o = Object.new def o.foo(*r); yield(*r); end