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