diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-09 21:42:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-09 21:42:25 +0900 |
commit | 101d56ddca818cad0e3ebe95e5e080fcac957b1b (patch) | |
tree | 4f127c20d3a5ea03389635a2e7ce2480391094ce /test/fiber/test_sleep.rb | |
parent | c8cd6b2003b6787630637d93b4d2930c7fa5590e (diff) | |
download | ruby-101d56ddca818cad0e3ebe95e5e080fcac957b1b.tar.gz |
Improved assertions
Diffstat (limited to 'test/fiber/test_sleep.rb')
-rw-r--r-- | test/fiber/test_sleep.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/test_sleep.rb b/test/fiber/test_sleep.rb index 4dadbb58bf..84e9d27550 100644 --- a/test/fiber/test_sleep.rb +++ b/test/fiber/test_sleep.rb @@ -14,7 +14,7 @@ class TestFiberSleep < Test::Unit::TestCase 5.times do |i| Fiber do - assert(sleep(i/100.0) >= 0) + assert_operator sleep(i/100.0), :>=, 0 items << i end end @@ -41,7 +41,7 @@ class TestFiberSleep < Test::Unit::TestCase thread.join - assert(seconds >= 2, "actual: %p" % seconds) + assert_operator seconds, :>=, 2, "actual: %p" % seconds end end |