summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-16 08:38:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-16 08:38:13 +0000
commita87f0aa071992e9cfba6b83b6d596a9f414f767a (patch)
treeeba6fd8aacc2d0220f8469636bbcd50dec7ba13e /test
parent19451891d8750a44097fae76422642bd288e9197 (diff)
bug number
* test/ruby/test_syntax.rb (test_keyword_rest): give the bug number to assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_syntax.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 6f51497cf2..8be81dcb4d 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -81,13 +81,13 @@ class TestSyntax < Test::Unit::TestCase
def test_keyword_rest
bug5989 = '[ruby-core:42455]'
- assert_valid_syntax("def kwrest_test(**a) a; end", __FILE__)
- assert_valid_syntax("def kwrest_test2(**a, &b) end", __FILE__)
+ assert_valid_syntax("def kwrest_test(**a) a; end", __FILE__, bug5989)
+ assert_valid_syntax("def kwrest_test2(**a, &b) end", __FILE__, bug5989)
o = Object.new
def o.kw(**a) a end
- assert_equal({}, o.kw)
- assert_equal({foo: 1}, o.kw(foo: 1))
- assert_equal({foo: 1, bar: 2}, o.kw(foo: 1, bar: 2))
+ assert_equal({}, o.kw, bug5989)
+ assert_equal({foo: 1}, o.kw(foo: 1), bug5989)
+ assert_equal({foo: 1, bar: 2}, o.kw(foo: 1, bar: 2), bug5989)
end
def test_warn_grouped_expression