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

ruby-changes:15611

From: naruse <ko1@a...>
Date: Wed, 28 Apr 2010 06:09:56 +0900 (JST)
Subject: [ruby-changes:15611] Ruby:r27520 (trunk): Cleaning up syntax warnings.

naruse	2010-04-28 06:09:46 +0900 (Wed, 28 Apr 2010)

  New Revision: 27520

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

  Log:
    Cleaning up syntax warnings.

  Modified files:
    trunk/lib/e2mmap.rb
    trunk/test/ruby/test_rubyoptions.rb
    trunk/test/test_mathn.rb

Index: lib/e2mmap.rb
===================================================================
--- lib/e2mmap.rb	(revision 27519)
+++ lib/e2mmap.rb	(revision 27520)
@@ -146,7 +146,7 @@
       E2MM.Fail E2MM, ErrNotRegisteredException, err.inspect
     end
   end
-  class <<E2MM
+  class << E2MM
     alias Fail Raise
   end
 
@@ -160,7 +160,7 @@
     end
     nil
   end
-  class <<self
+  class << self
     alias message e2mm_message
   end
 
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 27519)
+++ test/ruby/test_rubyoptions.rb	(revision 27520)
@@ -182,7 +182,7 @@
   end
 
   def test_syntax_check
-    assert_in_out_err(%w(-c -e 1+1), "", ["Syntax OK"], [])
+    assert_in_out_err(%w(-c -e a=1+1), "", ["Syntax OK"], [])
   end
 
   def test_invalid_option
Index: test/test_mathn.rb
===================================================================
--- test/test_mathn.rb	(revision 27519)
+++ test/test_mathn.rb	(revision 27520)
@@ -4,7 +4,7 @@
 # mathn redefines too much. It must be isolated to child processes.
 class TestMathn < Test::Unit::TestCase
   def test_power
-    assert_in_out_err ['-r', 'mathn', '-e', '1**2'], "", [], [], '[ruby-core:25740]'
-    assert_in_out_err ['-r', 'mathn', '-e', '(1<<126)**2'], "", [], [], '[ruby-core:25740]'
+    assert_in_out_err ['-r', 'mathn', '-e', 'a=1**2'], "", [], [], '[ruby-core:25740]'
+    assert_in_out_err ['-r', 'mathn', '-e', 'a=(1<<126)**2'], "", [], [], '[ruby-core:25740]'
   end
 end

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

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