test/printers_test.rb in ruby-prof-0.12.2 vs test/printers_test.rb in ruby-prof-0.13.0
- old
+ new
@@ -73,10 +73,11 @@
printer = klass.new(@result)
printer.print(output)
assert_match(/Thread ID: -?\d+/i, output)
+ assert_match(/Fiber ID: -?\d+/i, output) unless RUBY_VERSION =~ /^1.8/
assert_match(/Total: \d+\.\d+/i, output)
assert_match(/Object#run_primes/i, output)
output
end
@@ -110,9 +111,10 @@
output = ''
printer = RubyProf::GraphPrinter.new(@result)
printer.print(output)
assert_match(/Thread ID: -?\d+/i, output)
+ assert_match(/Fiber ID: -?\d+/i, output) unless RUBY_VERSION =~ /^1.8/
assert_match(/Total Time: \d+\.\d+/i, output)
assert_match(/Object#run_primes/i, output)
end
def test_call_tree_string