Sha256: 2413b96ad3f085085112042f6c02d4dda1f2d390d3d536a6e41aa62958dc711c

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

#!/usr/bin/env ruby

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

# test for http://redmine.ruby-lang.org/issues/show/3660 and others that show 1.9.1 not having correct return methods..

class SingletonTest < Test::Unit::TestCase
  def test_singleton
    result = RubyProf.profile do
      a = [1,2,3]
      a.each{ |n|
      }
    end
    printer = RubyProf::FlatPrinter.new(result)
    output = ENV['SHOW_RUBY_PROF_PRINTER_OUTPUT'] == "1" ? STDOUT : ''
    output = STDOUT
    printer.print(output)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-prof-0.9.2 test/basic2_test.rb