test/basic_test.rb in ruby-prof-0.8.2 vs test/basic_test.rb in ruby-prof-0.9.0

- old
+ new

@@ -5,11 +5,11 @@ class C1 def C1.hello sleep(0.1) end - + def hello sleep(0.2) end end @@ -113,11 +113,11 @@ assert_in_delta(0.1, methods[2].total_time, 0.01) assert_in_delta(0, methods[2].wait_time, 0.01) assert_in_delta(0.1, methods[2].self_time, 0.01) end - + if RUBY_VERSION < '1.9' PARENT = Object else PARENT = BasicObject end @@ -223,10 +223,10 @@ assert_equal('M1#hello', names[1]) assert_equal('Kernel#sleep', names[2]) assert_equal('Class#new', names[3]) assert(names.include?("<Class::#{PARENT}>#allocate")) assert(names.include?("#{PARENT}#initialize")) - + # Check times assert_in_delta(0.3, methods[0].total_time, 0.1) assert_in_delta(0, methods[0].wait_time, 0.1) assert_in_delta(0, methods[0].self_time, 0.1)