Sha256: b497d1b89ea163f4228af18015a76b9a5ccfe091f5167684347a20e552bd55b7

Contents?: true

Size: 468 Bytes

Versions: 12

Compression:

Stored size: 468 Bytes

Contents

require 'gir_ffi_test_helper'

describe GirFFI::TypeMap do
  describe '.type_specification_to_ffi_type' do
    it 'returns the nested FFI::Enum for an Enum module' do
      GirFFI::TypeMap.type_specification_to_ffi_type(GLib::DateMonth).
        must_equal GLib::DateMonth
    end

    it 'returns the class itself for a Struct class' do
      GirFFI::TypeMap.type_specification_to_ffi_type(GObject::EnumValue).
        must_equal GObject::EnumValue
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 test/gir_ffi/type_map_test.rb
gir_ffi-0.9.1 test/gir_ffi/type_map_test.rb
gir_ffi-0.9.0 test/gir_ffi/type_map_test.rb
gir_ffi-0.8.6 test/gir_ffi/type_map_test.rb
gir_ffi-0.8.5 test/gir_ffi/type_map_test.rb
gir_ffi-0.8.4 test/gir_ffi/type_map_test.rb
gir_ffi-0.8.3 test/gir_ffi/type_map_test.rb
gir_ffi-0.8.2 test/gir_ffi/type_map_test.rb
gir_ffi-0.8.1 test/gir_ffi/type_map_test.rb
gir_ffi-0.8.0 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.10 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.9 test/gir_ffi/type_map_test.rb