Sha256: fbec3f871a81b8ef92cc1d29e08a66bb41b6e3698b24d267bfc4e62309b7abb5

Contents?: true

Size: 236 Bytes

Versions: 16

Compression:

Stored size: 236 Bytes

Contents

require 'facets/time/elapse.rb'
require 'test/unit'

class TC_Time_Elapse < Test::Unit::TestCase

  def test_elapse
    #t = Time.parse('4/20/2006 15:37')
    t = Time.elapse { sleep 1 }
    assert( (t > 0.9) && (t < 2.1 ))
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/time/test_elapse.rb
facets-2.8.3 test/core/time/test_elapse.rb
facets-2.8.2 test/core/time/test_elapse.rb
facets-2.8.1 test/core/time/test_elapse.rb
facets-2.8.0 test/core/time/test_elapse.rb
facets-2.7.0 test/core/time/test_elapse.rb
facets-2.6.0 test/core/time/test_elapse.rb
facets-2.4.0 test/time/test_elapse.rb
facets-2.4.1 test/time/test_elapse.rb
facets-2.4.3 test/core/time/test_elapse.rb
facets-2.4.4 test/core/time/test_elapse.rb
facets-2.4.2 test/core/time/test_elapse.rb
facets-2.5.0 test/core/time/test_elapse.rb
facets-2.4.5 test/core/time/test_elapse.rb
facets-2.5.1 test/core/time/test_elapse.rb
facets-2.5.2 test/core/time/test_elapse.rb