test/printers_test.rb in ruby-prof-0.11.2 vs test/printers_test.rb in ruby-prof-0.11.3
- old
+ new
@@ -257,8 +257,10 @@
only_root_calls.delete_at(0)
only_root_calls.collect {|line| line.scan(/[\d\.]+/)[n - 1] }
end
def assert_sorted array
+ array = array.map{|n| n.to_f} # allow for > 10s times to sort right, since lexographically 4.0 > 10.0
assert_equal array, array.sort.reverse, "Array #{array.inspect} is not sorted"
end
+
end