Sha256: ebb9de28389e13866a9c02ede63991b2ef55682ebb94dba3a70a702f4a7949a5

Contents?: true

Size: 465 Bytes

Versions: 8

Compression:

Stored size: 465 Bytes

Contents

require 'gir_ffi_test_helper'

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gir_ffi-0.7.7 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.6 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.5 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.4 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.3 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.2 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.1 test/gir_ffi/type_map_test.rb
gir_ffi-0.7.0 test/gir_ffi/type_map_test.rb