blob: 0a3e24beb2368fff15a030f619a3f37e91efa5cf [file]
require_relative "test_helper"
class ClassTest < StdlibTest
target Class
def test_singleton_new
Class.new()
Class.new(Integer)
Class.new { }
end
def test_allocate
Class.new.allocate
end
def test_instance_new
Class.new.new
end
def test_super_class
Class.new.superclass
BasicObject.superclass
end
end