mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_signal.rb: fix arguments order
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d2127cb304
commit
4488a4b927
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue