summaryrefslogtreecommitdiff
path: root/test/-ext-
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-06 08:11:21 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-06 08:11:21 +0000
commit90c33c21985f445c7a60cddfd3718cc8f073de82 (patch)
treeaa4872bc86ed0fb03c8d049443e70dd3cae176a8 /test/-ext-
parente240f49073d7f04eb513d4665b118ed8cdfdb864 (diff)
Use assert_operator to show clear message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/old_thread_select/test_old_thread_select.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/-ext-/old_thread_select/test_old_thread_select.rb b/test/-ext-/old_thread_select/test_old_thread_select.rb
index a7db7bdf997..c9b55c81eed 100644
--- a/test/-ext-/old_thread_select/test_old_thread_select.rb
+++ b/test/-ext-/old_thread_select/test_old_thread_select.rb
@@ -19,7 +19,7 @@ class TestOldThreadSelect < Test::Unit::TestCase
rc = IO.old_thread_select([r.fileno], nil, nil, 0.001)
diff = Time.now - t0
assert_equal 0, rc
- assert diff >= 0.001, "returned too early"
+ assert_operator diff, :>=, 0.001, "returned too early"
end
end
@@ -59,10 +59,10 @@ class TestOldThreadSelect < Test::Unit::TestCase
end
diff = Time.now - t0
- assert diff >= 1.0, "interrupted or short wait"
+ assert_operator diff, :>=, 1.0, "interrupted or short wait"
assert_equal 0, rc
assert_equal true, thr.value
- assert received, "SIGINT not received"
+ assert_not_equal false, received, "SIGINT not received"
ensure
trap(:INT, "DEFAULT")
end