Show failed times

This commit is contained in:
Nobuyoshi Nakada 2020-02-21 12:43:57 +09:00
parent eff0c5bf2a
commit f6b6a7ad34
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -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