mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00

some minor nonfree OS. I have no means of debugging the bug. My personal opinion is that such OS should be unsupported unless there is an active maintainer. [ruby-core:37352] * test/coverage/test_coverage.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
18 lines
413 B
Ruby
18 lines
413 B
Ruby
require "test/unit"
|
|
require "coverage"
|
|
require "tmpdir"
|
|
|
|
class TestCoverage < Test::Unit::TestCase
|
|
def test_result_without_start
|
|
assert_raise(RuntimeError) {Coverage.result}
|
|
end
|
|
def test_result_with_nothing
|
|
Coverage.start
|
|
result = Coverage.result
|
|
assert_kind_of(Hash, result)
|
|
result.each do |key, val|
|
|
assert_kind_of(String, key)
|
|
assert_kind_of(Array, val)
|
|
end
|
|
end
|
|
end
|