Sha256: f5b7a9e21ff0a4b0f7232b62573ad59b2c9fb173db428502ee13d25a4d30d94d

Contents?: true

Size: 341 Bytes

Versions: 10

Compression:

Stored size: 341 Bytes

Contents

#!/usr/bin/env ruby

require 'test/unit'
require 'ruby-prof'

# --  Test for bug
# http://github.com/rdp/ruby-prof/issues#issue/12

class EnumerableTest < Test::Unit::TestCase
  def test_enumerable
    result = RubyProf.profile do
      3.times {  [1,2,3].any? {|n| n} }
    end
    assert result.threads.to_a.first[1].length == 4
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
ruby-prof-0.10.8 test/enumerable_test.rb
ruby-prof-0.10.7 test/enumerable_test.rb
ruby-prof-0.10.6 test/enumerable_test.rb
ruby-prof-0.10.5 test/enumerable_test.rb
ruby-prof-0.10.4 test/enumerable_test.rb
ruby-prof-0.10.2 test/enumerable_test.rb
acunote-ruby-prof-0.9.2 test/enumerable_test.rb
ruby-prof-0.9.2 test/enumerable_test.rb
ruby-prof-0.9.1 test/enumerable_test.rb
ruby-prof-0.9.0 test/enumerable_test.rb