test/prime.rb in ruby-prof-0.18.0 vs test/prime.rb in ruby-prof-1.0.0
- old
+ new
@@ -2,9 +2,11 @@
# is intentionally badly designed to show off the use
# of ruby-prof.
#
# Source from http://people.cs.uchicago.edu/~bomb154/154/maclabs/profilers-lab/
+require File.expand_path('../test_helper', __FILE__)
+
def make_random_array(length, maxnum)
result = Array.new(length)
result.each_index do |i|
result[i] = rand(maxnum)
end