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

ruby-changes:34866

From: nobu <ko1@a...>
Date: Fri, 25 Jul 2014 20:23:06 +0900 (JST)
Subject: [ruby-changes:34866] nobu:r46949 (trunk): test/ripper/test_scanner_events.rb: fill empty test methods

nobu	2014-07-25 20:22:49 +0900 (Fri, 25 Jul 2014)

  New Revision: 46949

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

  Log:
    test/ripper/test_scanner_events.rb: fill empty test methods

  Modified files:
    trunk/test/ripper/test_scanner_events.rb
Index: test/ripper/test_scanner_events.rb
===================================================================
--- test/ripper/test_scanner_events.rb	(revision 46948)
+++ test/ripper/test_scanner_events.rb	(revision 46949)
@@ -874,15 +874,23 @@ class TestRipper::ScannerEvents < Test:: https://github.com/ruby/ruby/blob/trunk/test/ripper/test_scanner_events.rb#L874
   end
 
   def test_label
+    assert_equal %w(foo:),
+                 scan('label', '{foo: 1}')
   end
 
   def test_tlambda
+    assert_equal %w(->),
+                 scan('tlambda', '->{}')
   end
 
   def test_tlambeg
+    assert_equal %w({),
+                 scan('tlambeg', '-> {}')
   end
 
   def test_tlambda_arg
+    assert_equal %w(),
+                 scan('tlambda_arg', '-> {}')
   end
 
 end if ripper_test

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

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