Sha256: 7def59df8a8a70eb855265041f70c6a892c9ac8bd5914742015727f58ffa3cfa
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.11.1 | test/gir_ffi/struct_base_test.rb |
gir_ffi-0.11.0 | test/gir_ffi/struct_base_test.rb |