Sha256: ef3ea57c2291b2c3b8509d7eb805d5140387f85d64a40c48e6caabad39c4766d
Contents?: true
Size: 452 Bytes
Versions: 9
Compression:
Stored size: 452 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require 'ruby-prof' require 'prime' require 'test_helper' # -- Tests ---- class PrimeTest < Test::Unit::TestCase def test_consistency result = RubyProf.profile do run_primes end result.threads.values.each do |methods| methods.each do |method| check_parent_times(method) check_parent_calls(method) check_child_times(method) end end end end
Version data entries
9 entries across 9 versions & 2 rubygems