* test/ruby/test_beginendblock.rb (test_endinmethod): END{} is now
allowed in eval. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6fc88be3d9
commit
cda830ff33
@ -1,3 +1,8 @@
|
|||||||
|
Tue Oct 7 09:13:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/test_beginendblock.rb (test_endinmethod): END{} is now
|
||||||
|
allowed in eval.
|
||||||
|
|
||||||
Tue Oct 7 04:15:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Oct 7 04:15:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (stmt): should not expand mrhs if lhs is solely starred.
|
* parse.y (stmt): should not expand mrhs if lhs is solely starred.
|
||||||
|
@ -17,8 +17,11 @@ class TestBeginEndBlock < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_endinmethod
|
def test_endinmethod
|
||||||
assert_raises(SyntaxError) do
|
verbose, $VERBOSE = $VERBOSE, nil
|
||||||
|
assert_nothing_raised(SyntaxError) do
|
||||||
eval("def foo; END {}; end")
|
eval("def foo; END {}; end")
|
||||||
end
|
end
|
||||||
|
ensure
|
||||||
|
$VERBOSE = verbose
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user