Sha256: f0848cdcf7b66597813c342fba9207fb02d60ed4eb5bcda1e3c86f8101466f29
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true require "gir_ffi_test_helper" GirFFI.setup :GIMarshallingTests describe GirFFI::UnionBase do it "inherits from StructLikeBase" do _(GirFFI::StructBase).must_include GirFFI::StructLikeBase end describe "new" do it "creates an instance with an owned struct" do instance = GIMarshallingTests::Union.new _(instance.struct).must_be :owned? end it "ensures the wrapped pointer is not autoreleased" do instance = GIMarshallingTests::Union.new _(instance.to_ptr).wont_be :autorelease? end end end
Version data entries
4 entries across 4 versions & 1 rubygems