blob: 7436fd55c36c94ecf9040950a5b204f84209bfb9 [file]
require_relative "test_helper"
class RubyVM::InstructionSequenceSingletonTest < Test::Unit::TestCase
include TestHelper
testing "singleton(::RubyVM::InstructionSequence)"
def test_of
assert_send_type "(::Method body) -> ::RubyVM::InstructionSequence",
RubyVM::InstructionSequence, :of, method(:test_of)
assert_send_type "(::UnboundMethod body) -> ::RubyVM::InstructionSequence",
RubyVM::InstructionSequence, :of, self.class.instance_method(:test_of)
assert_send_type "(::Proc body) -> ::RubyVM::InstructionSequence",
RubyVM::InstructionSequence, :of, -> { }
end
end