[前][次][番号順一覧][スレッド一覧]

ruby-changes:23012

From: nobu <ko1@a...>
Date: Fri, 16 Mar 2012 17:38:25 +0900 (JST)
Subject: [ruby-changes:23012] nobu:r35061 (trunk): bug number

nobu	2012-03-16 17:38:13 +0900 (Fri, 16 Mar 2012)

  New Revision: 35061

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35061

  Log:
    bug number
    
    * test/ruby/test_syntax.rb (test_keyword_rest): give the bug number to assertions.

  Modified files:
    trunk/test/ruby/test_syntax.rb

Index: test/ruby/test_syntax.rb
===================================================================
--- test/ruby/test_syntax.rb	(revision 35060)
+++ test/ruby/test_syntax.rb	(revision 35061)
@@ -81,13 +81,13 @@
 
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]