Sha256: 60ca6a588d8420d6f602d951f67a0bacbde6c47d9e81d34b49568922c71ab1a1

Contents?: true

Size: 443 Bytes

Versions: 5

Compression:

Stored size: 443 Bytes

Contents

require 'test/unit'

class TestUnitEqual < Test::Unit::TestCase
  def test_equal
    assert_equal 1, 1
  end
end

30.times do |i|
  Object.const_set("TestUnitSleep#{i}", Class.new(Test::Unit::TestCase) do
    define_method('test_sleep') do
      start = Time.now
      sleep(0.25)
      assert_in_delta Time.now-start, 0.25, 0.02
    end
  end)
end

class TestUnitFailure < Test::Unit::TestCase
  def test_fail
    assert_equal 0, 1
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
test-queue-split-0.3.2 test/sample_testunit.rb
test-queue-split-0.3.1 test/sample_testunit.rb
test-queue-split-0.3.0 test/sample_testunit.rb
test-queue-0.2.13 test/sample_testunit.rb
test-queue-0.2.12 test/sample_testunit.rb