summaryrefslogtreecommitdiff
path: root/test/ruby/test_parse.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-11 02:53:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-11 02:53:31 +0000
commitd311b7d0eb1e973c8d143f03e66ab72588f57a2a (patch)
treeff1cdd19d8da49467ed8319d3c7996fa6b61e7a6 /test/ruby/test_parse.rb
parent8322c36a9bb55a50faf03ffaf23e0ebf08f71e30 (diff)
parse.y: optional superclass
* parse.y (superclass): make superclass rule optional and allow any contents without a terminator. [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r--test/ruby/test_parse.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 80d09c1e7b..673b0e7b74 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -206,9 +206,9 @@ class TestParse < Test::Unit::TestCase
END
end
- assert_raise(SyntaxError) do
+ assert_nothing_raised(SyntaxError) do
eval <<-END, nil, __FILE__, __LINE__+1
- class Foo Bar; end
+ class Foo 1; end
END
end
end