ruby/test/mkmf/test_mkmf.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 строки
351 B
Ruby
Исходник Постоянная ссылка Обычный вид История

# frozen_string_literal: false
require 'test/unit'
require 'mkmf'
class TestMkmfGlobal < Test::Unit::TestCase
main = TOPLEVEL_BINDING.receiver
MakeMakefile.public_instance_methods(false).each do |m|
define_method(:"test_global_#{m}") do
assert_respond_to(main, [m, true])
assert_not_respond_to(main, [m, false])
end
end
end