Sha256: 241f94d08b65ae762ceaef9c53892446d475556126713136d49c29f8e10fd23a
Contents?: true
Size: 582 Bytes
Versions: 9
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' GirFFI.setup :GIMarshallingTests describe GirFFI::StructBase 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::SimpleStruct.new instance.struct.must_be :owned? end it 'ensures the wrapped pointer is not autoreleased' do instance = GIMarshallingTests::SimpleStruct.new instance.to_ptr.wont_be :autorelease? end end end
Version data entries
9 entries across 9 versions & 1 rubygems