summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-21 03:43:57 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-24 05:56:03 (GMT)
commitf6b6a7ad345c50eeb3f7206ceabdf41ba94b7d85 (patch)
tree7ea877c2d011d701059273f2ebf2689fc2e54a42
parenteff0c5bf2ad47d10a440c5211be5eddb3bbf4028 (diff)
Show failed times
-rw-r--r--spec/ruby/core/process/clock_getres_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/core/process/clock_getres_spec.rb b/spec/ruby/core/process/clock_getres_spec.rb
index 1d5dd7c..797824f 100644
--- a/spec/ruby/core/process/clock_getres_spec.rb
+++ b/spec/ruby/core/process/clock_getres_spec.rb
@@ -24,7 +24,9 @@ describe "Process.clock_getres" do
# The clock should not be less accurate than reported (times should
# not all be a multiple of the next precision up, assuming precisions
# are multiples of ten.)
- times.select { |t| t % (reported * 10) == 0 }.size.should_not == times.size
+ if times.all? { |t| t % (reported * 10) == 0 }
+ times.uniq.should be_empty
+ end
end
end
end