mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Show failed times
This commit is contained in:
parent
eff0c5bf2a
commit
f6b6a7ad34
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ describe "Process.clock_getres" do
|
||||||
# The clock should not be less accurate than reported (times should
|
# The clock should not be less accurate than reported (times should
|
||||||
# not all be a multiple of the next precision up, assuming precisions
|
# not all be a multiple of the next precision up, assuming precisions
|
||||||
# are multiples of ten.)
|
# 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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue