test/printers_test.rb in ruby-prof-0.8.1 vs test/printers_test.rb in ruby-prof-0.8.2
- old
+ new
@@ -31,12 +31,13 @@
printer = RubyProf::GraphPrinter.new(@result)
printer.print
printer = RubyProf::CallTreePrinter.new(@result)
- printer.print(STDOUT)
- # we should get here
+ printer.print(STDOUT)
+
+ # we should get here
end
def test_flat_string
output = helper_test_flat_string RubyProf::FlatPrinter
assert_no_match(/prime.rb/, output)
@@ -92,12 +93,12 @@
def test_call_tree_string
output = ''
printer = RubyProf::CallTreePrinter.new(@result)
printer.print(output)
-
- assert_match(/fn=Object::find_primes/i, output)
+ assert_match(/fn=Object#find_primes/i, output)
assert_match(/events: wall_time/i, output)
+ assert_no_match(/d\d\d\d\d\d/, output) # old bug looked [in error] like Object::run_primes(d5833116)
end
def do_nothing
start = Time.now
while(Time.now == start)