ruby-changes:60493
From: Nobuyoshi <ko1@a...>
Date: Tue, 24 Mar 2020 14:57:30 +0900 (JST)
Subject: [ruby-changes:60493] f6b6a7ad34 (master): Show failed times
https://git.ruby-lang.org/ruby.git/commit/?id=f6b6a7ad34 From f6b6a7ad345c50eeb3f7206ceabdf41ba94b7d85 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 21 Feb 2020 12:43:57 +0900 Subject: Show failed times 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/clock_getres_spec.rb#L24 # 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/