summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-06 13:43:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-06 13:43:54 +0000
commit4488a4b9272509cd34dc365a9d46e0f86cffe8f9 (patch)
tree75c4c692034b5c82eb7a3b4a484948aa399399de
parentd2127cb304b5be119e6e5bc6f8f372bf166dc07d (diff)
test_signal.rb: fix arguments order
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_signal.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index 2d98b0b..3357b87 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -83,9 +83,9 @@ class TestSignal < Test::Unit::TestCase
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
EOS
signame = Marshal.load(child)
- assert_equal(signame, "INT")
+ assert_equal("INT", signame)
end
end
end if Process.respond_to?(:kill)