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

ruby-changes:50540

From: nobu <ko1@a...>
Date: Tue, 6 Mar 2018 22:44:00 +0900 (JST)
Subject: [ruby-changes:50540] nobu:r62679 (trunk): test_signal.rb: fix arguments order

nobu	2018-03-06 22:43:54 +0900 (Tue, 06 Mar 2018)

  New Revision: 62679

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

  Log:
    test_signal.rb: fix arguments order

  Modified files:
    trunk/test/ruby/test_signal.rb
Index: test/ruby/test_signal.rb
===================================================================
--- test/ruby/test_signal.rb	(revision 62678)
+++ test/ruby/test_signal.rb	(revision 62679)
@@ -83,9 +83,9 @@ class TestSignal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_signal.rb#L83
     assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) { SignalException.new("\u{30eb 30d3 30fc}") }
     Signal.list.each do |signm, signo|
       next if signm == "EXIT"
-      assert_equal(SignalException.new(signm).signo, signo)
-      assert_equal(SignalException.new(signm.to_sym).signo, signo)
-      assert_equal(SignalException.new(signo).signo, signo)
+      assert_equal(signo, SignalException.new(signm).signo, signm)
+      assert_equal(signo, SignalException.new(signm.to_sym).signo, signm)
+      assert_equal(signo, SignalException.new(signo).signo, signo)
     end
   end
 
@@ -241,7 +241,7 @@ class TestSignal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_signal.rb#L241
 EOS
 
         signame = Marshal.load(child)
-        assert_equal(signame, "INT")
+        assert_equal("INT", signame)
       end
     end
   end if Process.respond_to?(:kill)

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

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